[Gnucash-changes] r12350 - gnucash/trunk - Add 'Makefile' as a dependency for targets that are generated

Derek Atkins warlord at MIT.EDU
Tue Jan 17 14:02:00 EST 2006


Chris Shoemaker <chris at cvs.gnucash.org> writes:

> Log:
> Add 'Makefile' as a dependency for targets that are generated
>>From scriptlets in Makefile.  That way, if the generating scriptlet is
> changed, (or the Makefile is regenerated) the target will also be remade.


> ===================================================================
> --- gnucash/trunk/src/gnome-utils/Makefile.am	2006-01-14 02:01:30 UTC (rev 12349)
> +++ gnucash/trunk/src/gnome-utils/Makefile.am	2006-01-14 03:56:53 UTC (rev 12350)
> -_gnc-version.h: gnc-svninfo.h
> +_gnc-version.h: gnc-svninfo.h Makefile
>  	@echo "/* Autogenerated. Do not change. */"	 > _gnc-version.h
>  	@echo "#ifndef GNC_VERSION_H"			>> _gnc-version.h
>  	@echo "#define GNC_VERSION_H"			>> _gnc-version.h
> @@ -257,7 +257,7 @@
>  	-cmp -s _gnc-svninfo.h gnc-svninfo.h || cp _gnc-svninfo.h gnc-svninfo.h
>  	-rm -f _gnc-svninfo.h
>  
> -_gnc-svninfo.h:
> +_gnc-svninfo.h: Makefile
>  	@s=${srcdir} ; \
>  	if [ -h ${srcdir}/Makefile.am ] ; then \
>  		d=`readlink $(srcdir)/Makefile.am` ; \
> @@ -302,7 +302,7 @@
>  	touch .scm-links

These two didn't need this change to depend on Makefile..  The _xxx
file never exists across runs (it gets deleted in the xxx rule), so
these '_' rules run on every "make".  Granted, having the explicit
dependency on Makefile doesn't hurt, but it's unnecessary.

Just an FYI.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list