develooper Front page | perl.perl5.porters | Postings from December 2008

regenerating a patch number

Thread Next
Nicholas Clark
December 27, 2008 08:31
regenerating a patch number
Message ID:
I'm still not convinced that I like this (new) section of the Makefile as-is

.PHONY: all translators utilities make_patchnum

	sh $(shellflags)

.patchnum: make_patchnum

perl$(OBJ_EXT): .patchnum

because it seems to have the side effect that make always considers that
.patchnum is out of date, so always regenerates it, so perl.o is always
recompiled, so miniperl is always relinked, so lib/unicore/mktables is
always re-run, and all the extensions Makefiles checked. Which is quite a bit
of work each time.

Is there a way in a makefile of saying "try this, but if it doesn't XYZ
then consider the target up-to-date"?

Nicholas Clark

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About