[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 18 Dec 2009 18:17:02 +0000
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:18.104.22.168pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4
On 18/12/09 07:07, Ling F. Zhang wrote:
I am writing a file to type set LaTeX. So I have a shell script which parse
the .tex file quickly and print out an include list:
$ mktexdep file.tex
In the Makefile, I have this line:
%.pdf : $$(shell mktexdep $$(subst pdf,tex,$$@))
Which would actually turn the above list into a prerequisite list. It works.
All's well. Since mktexdep itself is a simple shell script consists of a few
greps/awk, I am wondering if I can do the whole thing within the Makefile.
I tried the following so far:
(shell commands acting on $1 to make dep list)
%.pdf : $$(call funcmktexdep,$$(subst pdf,tex,$$@))
It doesn't work.
Calling funcmktexdep macro returns the text of the macro definition,
rather than executing the definition. To execute that text $(eval text)
%.pdf : $$(eval $$(call funcmktexdep,$$(subst pdf,tex,$$@)))
- generating, Ling F. Zhang, 2009/12/18
- Re: generating,
Maxim Yegorushkin <=