diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 05:04:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 05:04:47 +0000 |
commit | ca198956f89d9b9d087b9aa7e93e62eeb01d25bd (patch) | |
tree | 03aa7887c8190f0fa0a521009dd0b699d1e477c7 | |
parent | b044d0951f95ac38c13e37c4d6484895bf2c3ebe (diff) |
Add a MANDIR variable, from Tiago Cunha.
-rw-r--r-- | GNUmakefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile index cbd663dc..6740ecd0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,4 @@ -# $Id: GNUmakefile,v 1.14 2008-06-04 18:27:33 nicm Exp $ +# $Id: GNUmakefile,v 1.15 2008-06-05 05:04:47 nicm Exp $ .PHONY: clean @@ -45,6 +45,7 @@ LDFLAGS+= LIBS+= -lncurses PREFIX?= /usr/local +MANDIR?= $(PREFIX)/man/man1 INSTALLDIR= install -d INSTALLBIN= install -g bin -o root -m 555 INSTALLMAN= install -g bin -o root -m 444 @@ -84,8 +85,8 @@ depend: $(SRCS) install: $(INSTALLDIR) $(DESTDIR)$(PREFIX)/bin $(INSTALLBIN) $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG) - $(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1 - $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(PREFIX)/man/man1/ + $(INSTALLDIR) $(DESTDIR)$(MANDIR) + $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(MANDIR) clean: rm -f $(CLEANFILES) |