]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Patch from Paul Green:
authorMartin Pool <mbp@sourcefrog.net>
Thu, 17 Apr 2003 12:06:14 +0000 (14:06 +0200)
committerMartin Pool <mbp@sourcefrog.net>
Thu, 17 Apr 2003 12:06:14 +0000 (14:06 +0200)
  The following patch fixes the ccache Makefile.in to handle executable
  suffixes. Turns out the configure script is already setting the necessary
  substitutable variable (EXEEXT). Tested by me on Stratus VOS.

Makefile.in

index 4b94b3d53e2d58b3fbcc14728aa2b1ea1d5bf35b..d6034ff4ccfd6d496ee4f82349d29df0727b85ad 100644 (file)
@@ -9,16 +9,17 @@ INSTALLCMD=@INSTALL@
 
 CC=@CC@
 CFLAGS=@CFLAGS@ -I.
+EXEEXT=@EXEEXT@
 
 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
+all: ccache$(EXEEXT)
 
 docs: ccache.1 web/ccache-man.html
 
-ccache: $(OBJS) $(HEADERS)
+ccache$(EXEEXT): $(OBJS) $(HEADERS)
        $(CC) $(CFLAGS) -o $@ $(OBJS)
 
 ccache.1: ccache.yo
@@ -28,14 +29,14 @@ web/ccache-man.html: ccache.yo
        mkdir -p man
        yodl2html -o web/ccache-man.html ccache.yo
 
-install: ccache ccache.1
+install: ccache$(EXEEXT) ccache.1
        ${INSTALLCMD} -d $(DESTDIR)${bindir}
-       ${INSTALLCMD} -m 755 ccache $(DESTDIR)${bindir}
+       ${INSTALLCMD} -m 755 ccache$(EXEEXT) $(DESTDIR)${bindir}
        ${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
        ${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
 
 clean:
-       /bin/rm -f $(OBJS) *~ ccache
+       /bin/rm -f $(OBJS) *~ ccache$(EXEEXT)
 
 test: test.sh
        ./test.sh