summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--README.md11
2 files changed, 15 insertions, 1 deletions
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
------------
```