Dear Make experts,

Apologies if this question has a trivial answer. I promise I read the
manual! But I am a novice and not everything makes perfect sense.

I'm not writing C programs. I'm compiling a large number (many hundreds) of
pdf documents from text files, and I don't want to list the many targets
explicitly, because they are not fixed. I want to be able to type something
like: make foo.pdf, and make will look for an equivalent foo.txt. From the
manual section on pattern rules I thought a simple rule like the following
would work:

%.pdf: %.txt
        $(COMMAND) $<

But I get an error saying there is "No rule to make target 'foo.pdf'". What
am I doing wrong?

Thanks in advance,
Kevin Barry
_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to