summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d9c07a)
raw | patch | inline | side by side (parent: 6d9c07a)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Jun 2006 00:11:05 +0000 (02:11 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Mon, 5 Jun 2006 00:11:05 +0000 (02:11 +0200) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Jonas F Madsen <fonseca@diku.dk>
Signed-off-by: Jonas F Madsen <fonseca@diku.dk>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 75e694daca07d7569fc2b762aa30a4a7999cb29e..6d595f408d732dc96ec79841dfdfe14ca6257fe4 100644 (file)
--- a/Makefile
+++ b/Makefile
-PREFIX = $(HOME)
+prefix = $(HOME)
+bindir= $(prefix)/bin
+mandir = $(prefix)/man
+# DESTDIR=
+
LDLIBS = -lcurses
CFLAGS = -Wall -O2
DFLAGS = -g -DDEBUG -Werror
install: all
for prog in $(PROGS); do \
- install $$prog $(PREFIX)/bin; \
+ install $$prog $(DESTDIR)$(bindir); \
done
install-doc: doc
+ mkdir -p $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5
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 ;; \
esac \
done