makefile: man page install should respect $DESTDIR - sdhcp - simple dhcp client
 (HTM) git clone git://git.codemadness.org/sdhcp
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 45822e2399a0daad7046b2cf309c0cbaff96104d
 (DIR) parent 26f8405cf619f67a76b170480efbcc1defa04c46
 (HTM) 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:
         M Makefile                            |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) 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 ?*~