]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
added DESTDIR support
authorAndrew Tridgell <tridge@samba.org>
Sun, 5 Jan 2003 23:47:05 +0000 (00:47 +0100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 5 Jan 2003 23:47:05 +0000 (00:47 +0100)
patch from volker@die-moells.de

Makefile.in

index f3b926f9c3be975f42be1417b187a5b7bef7207c..ef049eb413283f1bd0625f7e4d822e2ae33344f2 100644 (file)
@@ -29,10 +29,10 @@ web/ccache-man.html: ccache.yo
        yodl2html -o web/ccache-man.html ccache.yo
 
 install:
-       ${INSTALLCMD} -d ${bindir}
-       ${INSTALLCMD} -m 755 ccache ${bindir}
-       ${INSTALLCMD} -d ${mandir}/man1
-       ${INSTALLCMD} -m 644 ${srcdir}/ccache.1 ${mandir}/man1/
+       ${INSTALLCMD} -d $(DESTDIR)${bindir}
+       ${INSTALLCMD} -m 755 ccache $(DESTDIR)${bindir}
+       ${INSTALLCMD} -d $(DESTDIR)${mandir}/man1/
+       ${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
 
 clean:
        /bin/rm -f $(OBJS) *~ ccache