diff options
author | Bruce Korb <korbb@gcc.gnu.org> | 1998-05-28 09:26:20 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 1998-05-28 09:26:20 +0000 |
commit | b76756e4f621bd60bb3a8f4db326de575f302674 (patch) | |
tree | 261906e37b722174c9756d65e2b4346432b2f227 /contrib | |
parent | 6efa7eb6ce6c2e9fc786890307d04de10ea63a5a (diff) | |
download | gcc-b76756e4f621bd60bb3a8f4db326de575f302674.zip gcc-b76756e4f621bd60bb3a8f4db326de575f302674.tar.gz gcc-b76756e4f621bd60bb3a8f4db326de575f302674.tar.bz2 |
makefile changes to support all this
From-SVN: r20120
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fixinc/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/contrib/fixinc/Makefile b/contrib/fixinc/Makefile index 3b85985..c3b0b4f 100644 --- a/contrib/fixinc/Makefile +++ b/contrib/fixinc/Makefile @@ -3,7 +3,7 @@ ## ## Makefile for constructing the "best" include fixer we can ## -## $Id: Makefile,v 1.1 1998/03/20 16:19:41 korbb Exp $ +## $Id: Makefile,v 1.4 1998/08/05 10:20:10 korbb Exp $ ## ## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @@ -26,7 +26,8 @@ fixincl.o: fixincl.x fixincl: $(OBJ) if $(CC) -o $@ $(OBJ) $(LIB) ; then : ; else \ - rm -f $@ ; echo false > $@ ; fi + rm -f $@ ; (echo "#! /bin/sh" ; echo exit 1 ) > $@ ; \ + chmod 777 $@ ; fi regex.o: regex.c $(CC) -g -DSTDC_HEADERS=1 -c regex.c @@ -55,11 +56,13 @@ clean: rm -f *.o fixincl install: fixincl.sh - @rm -f ../../gcc/fixincl.sh ; \ - echo cp fixincl.sh ../../gcc ; \ - cp fixincl.sh ../../gcc ; \ - chmod +x ../../gcc/fixincl.sh + @rm -f $(DESTDIR)/fixinc.sh ; \ + echo cp fixincl.sh $(DESTDIR)/fixinc.sh ; \ + cp fixincl.sh $(DESTDIR)/fixinc.sh ; \ + chmod 555 $(DESTDIR)/fixinc.sh @echo check for fixincl copy... @if ( ./fixincl -v > /dev/null 2>&1 ) ; then \ - echo cp fixincl ../../gcc/fixincl ; \ - cp fixincl ../../gcc/fixincl ; fi + rm -f $(DESTDIR)/fixincl ; \ + echo cp fixincl $(DESTDIR) ; \ + cp fixincl $(DESTDIR) ; \ + chmod 555 $(DESTDIR)/fixincl ; fi |