]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
support for building in another dir
authorAndrew Tridgell <tridge@samba.org>
Wed, 10 Apr 2002 22:29:30 +0000 (00:29 +0200)
committerAndrew Tridgell <tridge@samba.org>
Wed, 10 Apr 2002 22:29:30 +0000 (00:29 +0200)
thanks to assar@permabit.com for the patch

Makefile.in

index 313ccddef9b43c6ee42698d70ea2724dd33661eb..7b1784bcfbedc308aba30358c5533b3fbd37e90b 100644 (file)
@@ -1,3 +1,6 @@
+srcdir=@srcdir@
+VPATH=@srcdir@
+
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 bindir=@bindir@
@@ -5,7 +8,7 @@ mandir=@mandir@
 INSTALLCMD=@INSTALL@
 
 CC=@CC@
-CFLAGS=@CFLAGS@
+CFLAGS=@CFLAGS@ -I.
 
 OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
        cleanup.o snprintf.o unify.o
@@ -27,7 +30,7 @@ web/ccache-man.html: ccache.yo
 
 install:
        ${INSTALLCMD} -m 755 ccache ${bindir}
-       ${INSTALLCMD} -m 644 ccache.1 ${mandir}/man1
+       ${INSTALLCMD} -m 644 ${srcdir}/ccache.1 ${mandir}/man1
 
 clean:
        /bin/rm -f $(OBJS) *~ ccache