summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eeddc1d..73ccb76 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ LDFLAGS+=-L/usr/local/lib -lxcb -lxcb-randr -lxcb-keysyms -lxcb-icccm \
-lxcb-util #-ldmalloc
RM=/bin/rm
-PREFIX=/usr/local
+PREFIX=$(DESTDIR)
TARGETS=mcwm hidden
OBJS=mcwm.o list.o
@@ -31,6 +31,7 @@ list.o: list.c list.h Makefile
install: $(TARGETS)
install -m 755 mcwm $(PREFIX)/bin
+ install -m 755 -d $(PREFIX)/man/man1/
install -m 644 mcwm.man $(PREFIX)/man/man1/mcwm.1
install -m 755 hidden $(PREFIX)/bin
install -m 644 hidden.man $(PREFIX)/man/man1/hidden.1