more build dependency changes, we should make sure that cflags is updated whenever...
authorYves Orton <demerphq@dromedary.booking.com>
Sun, 21 Dec 2008 16:04:33 +0000 (17:04 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 26 Feb 2009 01:51:49 +0000 (01:51 +0000)
(cherry picked from commit ce0e211a90da72f1344099dc2e538e0b466a3641)

Makefile.SH
cflags.SH
make_patchnum.sh [moved from make_patchnun.sh with 100% similarity]

index d092524..a597b30 100644 (file)
@@ -513,13 +513,13 @@ splintflags = \
 
 splintfiles = $(c1)
 
-.c$(OBJ_EXT):
+.c$(OBJ_EXT): cflags
        $(CCCMD) $(PLDLFLAGS) $*.c
 
-.c.i:
+.c.i: cflags
        $(CCCMDSRC) -E $*.c > $*.i
 
-.c.s:
+.c.s: cflags
        $(CCCMDSRC) -S $*.c
 
 all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
@@ -538,7 +538,7 @@ sperl.i: perl.c $(h)
 .PHONY: all translators utilities make_patchnum
 
 make_patchnum:
-        sh $(shellflags) make_patchnum.sh
+       sh $(shellflags) make_patchnum.sh
 
 perl$(OBJ_EXT): make_patchnum .patchnum
 
index b11966b..2546586 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -354,7 +354,7 @@ case "$cc" in
   ;;
 esac
 
-if [ -f .patchnum -a -n "$(cat .patchnum)"]; then
+if [ -f .patchnum -a -n "$(cat .patchnum)" ] ; then
     ccflags="-DPERL_PATCHNUM=`cat .patchnum`"
 fi
 
similarity index 100%
rename from make_patchnun.sh
rename to make_patchnum.sh