aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile7
-rw-r--r--Makefile4
2 files changed, 5 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 18a1fecd..1012c571 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.73 2009-02-18 08:50:30 nicm Exp $
+# $Id: GNUmakefile,v 1.74 2009-02-18 09:04:15 nicm Exp $
.PHONY: clean
@@ -62,7 +62,6 @@ 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
@@ -123,8 +122,8 @@ depend: $(SRCS)
install:
$(INSTALLDIR) $(DESTDIR)$(PREFIX)/bin
$(INSTALLBIN) $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG)
- $(INSTALLDIR) $(DESTDIR)$(MANDIR)
- $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(MANDIR)
+ $(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1
+ $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(PREFIX)/man/man1/$(PROG).1
clean:
rm -f $(CLEANFILES)
diff --git a/Makefile b/Makefile
index 5e762dc9..74040ffc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.114 2009-02-18 08:50:30 nicm Exp $
+# $Id: Makefile,v 1.115 2009-02-18 09:04:15 nicm Exp $
.SUFFIXES: .c .o .y .h
.PHONY: clean update-index.html upload-index.html
@@ -144,6 +144,6 @@ update-index.html:
install: all
${INSTALLDIR} ${DESTDIR}${PREFIX}/bin
- ${INSTALLBIN} ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
+ ${INSTALLBIN} ${PROG} ${DESTDIR}${PREFIX}/bin/
${INSTALLDIR} ${DESTDIR}${PREFIX}/man/man1
${INSTALLMAN} ${PROG}.1 ${DESTDIR}${PREFIX}/man/man1/