I would like to have a couple of make rules of the form
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 markdown files to PDF whenever I change them. I think specifying a rule like
build/%.pdf: text/%/%.md
....
is not working. Is there a way of generating a rule matching the special pattern I have? Are such cases better handled by cmake?
You can generate your rules dynamically with
define
,eval
, andcall
.