summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-30 13:59:16 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-30 13:59:16 +0000
commit2b3ba1cfade5e81c6c18b2d9733423512893c86b (patch)
tree926b60e1ba1f1d42ba0492050f216e22fbe57c24 /Makefile
parentfe1299aecf62068f4bb320115eb1f6e3a3cf2c8f (diff)
Bah, doing it together doesn't seem to work portably.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a138e36c..13155c90 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.50 2007-11-30 13:54:18 nicm Exp $
+# $Id: Makefile,v 1.51 2007-11-30 13:59:16 nicm Exp $
.SUFFIXES: .c .o .y .h
.PHONY: clean update-index.html upload-index.html
@@ -49,8 +49,9 @@ CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
PREFIX?= /usr/local
-INSTALLBIN= install -d -g bin -o root -m 555
-INSTALLMAN= install -d -g bin -o root -m 444
+INSTALLDIR= install -d
+INSTALLBIN= install -g bin -o root -m 555
+INSTALLMAN= install -g bin -o root -m 444
LDFLAGS+= -L/usr/local/lib
.ifdef PROFILE
@@ -109,5 +110,7 @@ update-index.html:
sed "s/%%VERSION%%/${VERSION}/g" index.html.in >index.html
install: all
+ ${INSTALLDIR} ${DESTDIR}${PREFIX}/bin
${INSTALLBIN} ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
+ ${INSTALLDIR} ${DESTDIR}${PREFIX}/man/man1
${INSTALLMAN} ${PROG}.1 ${DESTDIR}${PREFIX}/man/man1/