Reuse CPPFLAGS.

This commit is contained in:
Nicholas Marriott 2009-02-18 09:04:15 +00:00
parent 664c79cf73
commit 78f420e7a9
2 changed files with 5 additions and 6 deletions

View File

@ -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)

View File

@ -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/