summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 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