[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More makefile oddities (was: Suspicious path issues...)
From: |
Matthias Kilian |
Subject: |
More makefile oddities (was: Suspicious path issues...) |
Date: |
Fri, 11 Mar 2005 17:18:16 +0100 |
User-agent: |
Mutt/1.4.2i |
Hi,
On Thu, Mar 10, 2005 at 08:00:18PM +0100, Matthias Kilian wrote:
> b) references a target `outimages' which isn't defined anywhere, thus
> breaking make web.
I just saw that you've removed this for 2.5, so did I on my local
working copy of 2.4.
However, I now have the problem that gmake doesn't correctly recognize
the dependency below resp. does really odd things to $(OUT_*_IMAGES)
$(outdir)/lilypond.dvi: $(OUT_EPS_IMAGES) $(OUT_PNG_IMAGES)
I added the following targets for debugging:
| .PHONY: foo bar
| foo:
| @echo $(OUT_EPS_IMAGES)
|
| bar: $(OUT_EPS_IMAGES)
This gives the following result.
$ gmake out=www foo
./out-www/baer-flat-bw.eps ./out-www/henle-flat-bw.eps
./out-www/lily-flat-bw.eps
$ gmake out=www bar
gmake: *** No rule to make target `/baer-flat-bw.eps', needed by `bar'. Stop.
Note that this independent of --no-builtin-rules.
Now comes the fun: With a Makefile stripped down to exactly this
problem, it works:
| depth=../..
|
| IMAGES=$(wildcard *.png)
|
| OUT_EPS_IMAGES=$(addprefix $(outdir)/,$(IMAGES:.png=.eps))
|
| .PHONY: foo bar
| foo:
| @echo $(OUT_EPS_IMAGES)
|
| bar: $(OUT_EPS_IMAGES)
|
| $(outdir)/%.png: %.png
| convert -geometry 50x50% $< $@
|
| $(outdir)/%.eps: %.png
| convert $< $@
|
| include $(depth)/make/stepmake.make
Has anyone an idea what's going on here?
Ciao,
Kili
- Suspicious path issues in Makefiles ;-), Matthias Kilian, 2005/03/07
- Re: Suspicious path issues in Makefiles ;-), Matthias Kilian, 2005/03/07
- Re: Suspicious path issues in Makefiles ;-), Jan Nieuwenhuizen, 2005/03/07
- Re: Suspicious path issues in Makefiles ;-), Matthias Kilian, 2005/03/08
- Re: Suspicious path issues in Makefiles ;-), Jan Nieuwenhuizen, 2005/03/08
- Re: Suspicious path issues in Makefiles ;-), Matthias Kilian, 2005/03/08
- Re: Suspicious path issues in Makefiles ;-), Matthias Kilian, 2005/03/09
- Re: Suspicious path issues in Makefiles ;-), Jan Nieuwenhuizen, 2005/03/09
- Re: Suspicious path issues in Makefiles ;-), Matthias Kilian, 2005/03/10
- More makefile oddities (was: Suspicious path issues...),
Matthias Kilian <=
- Re: More makefile oddities, Jan Nieuwenhuizen, 2005/03/11
- Re: More makefile oddities (was: Suspicious path issues...), Matthias Kilian, 2005/03/11
- Re: More makefile oddities, Jan Nieuwenhuizen, 2005/03/14