more build dependency changes, we should make sure that cflags is updated whenever...
Yves Orton [Sun, 21 Dec 2008 16:04:33 +0000 (17:04 +0100)]
Makefile.SH
cflags.SH
make_patchnum.sh [moved from make_patchnun.sh with 100% similarity]

index 755e600..5040e53 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