summaryrefslogtreecommitdiff
path: root/CCache/Makefile.in
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2008-11-07 17:03:57 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2008-11-07 17:03:57 +0000
commita65e8839121f8bac3f4134d327bc93e91a1f7903 (patch)
tree4564e54d9c79da8cb5a3641c4e52a86b9990d7fb /CCache/Makefile.in
parentc8b41eebf83a6380ac79e422bb8b53297f660eae (diff)
downloadswig-a65e8839121f8bac3f4134d327bc93e91a1f7903.tar.gz
integrate ccache build
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'CCache/Makefile.in')
-rw-r--r--CCache/Makefile.in13
1 files changed, 7 insertions, 6 deletions
diff --git a/CCache/Makefile.in b/CCache/Makefile.in
index 07b86f0f4..27cc1725f 100644
--- a/CCache/Makefile.in
+++ b/CCache/Makefile.in
@@ -7,6 +7,7 @@ exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
INSTALLCMD=@INSTALL@
+PACKAGE_NAME=@PACKAGE_NAME@
CC=@CC@
CFLAGS=@CFLAGS@ -I.
@@ -17,11 +18,11 @@ OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
cleanup.o snprintf.o unify.o
HEADERS = ccache.h mdfour.h
-all: ccache$(EXEEXT)
+all: $(PACKAGE_NAME)$(EXEEXT)
docs: ccache.1 web/ccache-man.html
-ccache$(EXEEXT): $(OBJS) $(HEADERS)
+$(PACKAGE_NAME)$(EXEEXT): $(OBJS) $(HEADERS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
ccache.1: ccache.yo
@@ -31,14 +32,14 @@ web/ccache-man.html: ccache.yo
mkdir -p man
yodl2html -o web/ccache-man.html ccache.yo
-install: ccache$(EXEEXT) ccache.1
+install: $(PACKAGE_NAME)$(EXEEXT) ccache.1
${INSTALLCMD} -d $(DESTDIR)${bindir}
- ${INSTALLCMD} -m 755 ccache$(EXEEXT) $(DESTDIR)${bindir}
+ ${INSTALLCMD} -m 755 $(PACKAGE_NAME)$(EXEEXT) $(DESTDIR)${bindir}
${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
clean:
- /bin/rm -f $(OBJS) *~ ccache$(EXEEXT)
+ /bin/rm -f $(OBJS) *~ $(PACKAGE_NAME)$(EXEEXT)
test: test.sh
CC='$(CC)' ./test.sh
@@ -46,7 +47,7 @@ test: test.sh
check: test
distclean: clean
- /bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
+ /bin/rm -f Makefile config.h config.sub config.log build-stamp config.status configure config.h
# FIXME: To fix this, test.sh needs to be able to take ccache from the
# installed prefix, not from the source dir.