Gnu make: use wildcard twice depending on rule
I would like to have a couple of form make rules
build/file_a.pdf: text/file_a/file_a.md
pandoc -o build/file_a.pdf text/file_a/file_a.md
build/file_b.pdf: text/file_b/file_b.md
pandoc -o build/file_b.pdf text/file_a/file_b.md
...
to convert a couple of markup files to PDF when I modify them. I think by specifying a rule like
build/%.pdf: text/%/%.md
....
does not work. Is there a way to generate a rule that matches a custom pattern I have? Are such cases better handled by cmake?
+3
source to share