Introduction
Introduction Statistics Contact Development Disclaimer Help
makefile: man page install should respect $DESTDIR - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit 45822e2399a0daad7046b2cf309c0cbaff96104d
parent 26f8405cf619f67a76b170480efbcc1defa04c46
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 25 Apr 2014 19:21:53 +0200
makefile: man page install should respect $DESTDIR
Signed-off-by: Hiltjo Posthuma <[email protected]>
Diffstat:
M Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -1,6 +1,7 @@
DESTDIR=
sdhcp: sdhcp.c debug.c
- $(CC) -O2 -o $@ sdhcp.c -static
+MANDIR = /usr/share/man
+
debug: sdhcp.c debug.c
$(CC) -DDEBUG -o sdhcp sdhcp.c -static
@@ -8,7 +9,7 @@ all: sdhcp
install: all
install -s sdhcp $(DESTDIR)/sbin
- gzip -c sdhcp.8 > /usr/share/man/man8/sdhcp.8.gz
+ gzip -c sdhcp.8 > $(DESTDIR)$(MANDIR)/man8/sdhcp.8.gz
clean:
rm -f sdhcp ?*~
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.