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

Re: regenerating a patch number

Thread Previous | Thread Next
From:
demerphq
Date:
December 27, 2008 09:42
Subject:
Re: regenerating a patch number
Message ID:
9b18b3110812270941u5c1ec344m6704986af5984982@mail.gmail.com
2008/12/27 Nicholas Clark <nick@ccl4.org>:
> I'm still not convinced that I like this (new) section of the Makefile as-is
> yet:
>
> .PHONY: all translators utilities make_patchnum
>
> make_patchnum:
>        sh $(shellflags) make_patchnum.sh
>
> .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.

It will always run the program that checks if it should be
regenerated, but it does not regenerate it each time. Read the code
for make_patchnum.sh and youll see what happens. This is exactly what
we want.

And it does not cause perl.c to be recompiled every time.

At least for me. Please let me know if you have actually witnessed it
rebuilding perl.obj twice if you do: make; make

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

I dont think its necessary.

Yves



-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About