diff options
author | Yves Orton <demerphq@gmail.com> | 2009-01-04 16:48:27 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2009-01-04 23:32:40 +0100 |
commit | dcff826f70bf3f64ced085d87d733c26aacda219 (patch) | |
tree | 78b69c0e058cb0278870514d6e35a89a115bb76e /Makefile.SH | |
parent | f22725be88de3e535d7cb5ec4c1b09c92c9a722e (diff) | |
download | perl-dcff826f70bf3f64ced085d87d733c26aacda219.tar.gz |
eliminate .patchnum and related infrastrcuture from *nix based build process
Rename the old "unpushed.h" to "git_version.h" and make it hold the defines that used to come from cflags magic
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile.SH b/Makefile.SH index 9ad8b6f102..ad04fe5350 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -525,7 +525,7 @@ splintfiles = $(c1) .c.s: $(CCCMDSRC) -S $*.c -all: $(FIRSTMAKEFILE) make_patchnum miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make +all: $(FIRSTMAKEFILE) make_patchnum miniperl$(EXE_EXT) miniperl extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make @echo " "; @echo " Everything is up to date. Type '$(MAKE) test' to run test suite." @@ -543,8 +543,11 @@ sperl.i: perl.c $(h) make_patchnum: sh $(shellflags) make_patchnum.sh -# make sure that we recompile perl.c if .patchnum changes -perl$(OBJ_EXT): .patchnum unpushed.h +git_version.h: + sh $(shellflags) make_patchnum.sh + +# make sure that we recompile perl.c if the git version changes +perl$(OBJ_EXT): git_version.h translators: miniperl$(EXE_EXT) $(CONFIGPM) FORCE @echo " "; echo " Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all @@ -1220,9 +1223,8 @@ _tidy: -cd pod; $(LDLIBPTH) $(MAKE) clean -cd utils; $(LDLIBPTH) $(MAKE) clean -cd x2p; $(LDLIBPTH) $(MAKE) clean - -rm .patchnum -rm lib/Config_git.pl - -rm unpushed.h + -rm git_version.h -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \ $(LDLIBPTH) sh ext/util/make_ext clean $$x MAKE=$(MAKE) ; \ done |