From c3fa3407ccc172ced3bf6e36c5ffb5e1ba089f65 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 22:58:54 -0700 Subject: install readme --- Makefile | 5 +++++ README.md | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 755317b..aa9c91e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CFLAGS=-O2 -g -lX11 -Wall -Werror -I. -Wno-unused-function LDFLAGS=-lXft -lfontconfig +PREFIX ?= /usr/local BIN=cmdtree @@ -33,6 +34,10 @@ $(BIN): $(OBJS) clean: fake rm -f $(OBJS) $(BIN) *.d +install: $(BIN) + mkdir -p $(PREFIX)/bin + cp $(BIN) $(PREFIX)/bin + TAGS: fake etags *.c diff --git a/README.md b/README.md index f067062..eb7bb7c 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,17 @@ dmenu. You will need to tweak [cfg.def.h](cfg.def.h) to your liking before building. This is temporary until the configuration file format is complete, but it has the benefit of being quite fast to launch! +Installing +---------- -key bindings +First customize [cfg.def.h](cfg.def.h) to include your menu items. + +libX11 and libXft are required. Once you have those installed, simply type: + + make && make install || sudo make install + + +Key Bindings ------------ ``` -- cgit v1.2.3