Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Jonas F Madsen <fonseca@diku.dk>
+prefix = $(HOME)
+bindir= $(prefix)/bin
+mandir = $(prefix)/man
+# DESTDIR=
+
LDLIBS = -lcurses
CFLAGS = -Wall -O2
DFLAGS = -g -DDEBUG -Werror
LDLIBS = -lcurses
CFLAGS = -Wall -O2
DFLAGS = -g -DDEBUG -Werror
install: all
for prog in $(PROGS); do \
install: all
for prog in $(PROGS); do \
- install $$prog $(PREFIX)/bin; \
+ install $$prog $(DESTDIR)$(bindir); \
+ mkdir -p $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5
for doc in $(DOCS); do \
case "$$doc" in \
for doc in $(DOCS); do \
case "$$doc" in \
- *.1) install $$doc $(PREFIX)/man/man1 ;; \
- *.5) install $$doc $(PREFIX)/man/man5 ;; \
+ *.1) install $$doc $(DESTDIR)$(mandir)/man1 ;; \
+ *.5) install $$doc $(DESTDIR)$(mandir)/man5 ;; \