On 2010-09-18 14:24Z, Paul Smith wrote: > On Sat, 2010-09-18 at 14:17 +0000, Greg Chicares wrote: >> %.dvi: TOOL := latex >> %.pdf: TOOL := pdflatex >> >> %.dvi %.pdf: %.tex >> @echo 'Sample command: $(TOOL) --input=$< --output=$@' >> # ...further commands here... > > You need to write these rules separately
Thanks. I had tested it thus: $touch eraseme.tex $make eraseme.dvi Sample command: latex --input=eraseme.tex --output=eraseme.dvi $make eraseme.pdf Sample command: pdflatex --input=eraseme.tex --output=eraseme.pdf So far so good, but: $make eraseme.dvi eraseme.pdf Sample command: latex --input=eraseme.tex --output=eraseme.dvi make: Nothing to be done for `eraseme.pdf'. and the explanation is: http://www.gnu.org/software/make/manual/html_node/Pattern-Intro.html#Pattern-Intro | Pattern rules may have more than one target. Unlike normal | rules, this does not act as many different rules with the | same prerequisites and recipe. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
