sdhcp

simple dhcp client
git clone git://git.2f30.org/sdhcp
Log | Files | Refs | LICENSE

commit 45822e2399a0daad7046b2cf309c0cbaff96104d
parent 26f8405cf619f67a76b170480efbcc1defa04c46
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 25 Apr 2014 19:21:53 +0200

makefile: man page install should respect $DESTDIR

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
MMakefile | 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 ?*~