[patch] ccache makefile fix

Green, Paul Paul.Green at stratus.com
Wed Apr 16 13:43:16 GMT 2003


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.

Thanks
PG
--
Paul Green, Senior Technical Consultant,
Stratus Technologies, Maynard, MA USA
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus


-------------- next part --------------
diff -urpN old/ccache/Makefile.in new/ccache/Makefile.in
--- old/ccache/Makefile.in	Tue Apr 15 21:37:31 2003
+++ new/ccache/Makefile.in	Tue Apr 15 21:52:41 2003
@@ -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


More information about the samba-technical mailing list