[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make: ordering of dependencies
From: |
Yavor Doganov |
Subject: |
Re: make: ordering of dependencies |
Date: |
Wed, 23 Jul 2008 12:49:37 +0300 |
User-agent: |
Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) |
nobrowser wrote:
>
> > TTBOMK, this has never been the case.
>
> For an example of a somewhat well-known project that depends on this
> assumption,
> see the GAR makefiles at http://www.lnx-bbc.com (especially gar.mk)
Sorry, I think I misunderstood you. I could not find gar.mk there,
but nevermind. The order in which rules are listed in the makefile
does not matter, but there is a notable exception for pattern rules.
Because `post-get-mirror' is an explicit rule, make builds it first --
this is documented in the manual, see "(make) Pattern Intro".
So if you rework your makefile like this:
get-%: do-get-% post-get-%
@true
do-get-%:
rsync -avu --delete $(remote-$*) $(local-$*)
post-get-%:
for f in key3.db signons3.txt bookmarks.html .tdldb .reminders ; do \
gpg-decrypt.sh mirror/.secure/$$f.gpg $$f ;\
done
It will behave as you expect (untested). Either you have to take this
approach (which perhaps won't be suitable when you implement the -pics
rules) or you have to resort to dependencies.
You might get better advice on <address@hidden>.