commit c3fa3407ccc172ced3bf6e36c5ffb5e1ba089f65
parent dcf6a5e6c155dff890becfdb3ac7cf430deecb61
Author: William Casarin <jb55@jb55.com>
Date: Mon, 9 Jul 2018 22:58:54 -0700
install readme
Diffstat:
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git 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
@@ -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
------------
```