Whenever several changes to the Markdown file, I am trying to use the makefile to compile PDFs: < Compile # source: = draft output: = distribution source: = $ (wildcard $ (source) / * .md) object: = $ (patsubst% .md,% .pdf) , $ (Subst $ (source), $ (output), $ (source)) all: $ (objects) report - print.md: $ (source) /% md cat draft / * md | pandok \ - Which Mitti: a4paper \ --number-sections \ --toc \ --f markdown \ -s \ -o dist / report-print.pdf. PHONY: Clear: Rm-F $ (output) /*.pdf < / Code>
I get an error:
create: *** There is no rule to create the goal / 01-title .pdf, `all ' Please stop the required by. The file is one of the drafts / 01-title.md source files.
< Div class = "post-text" itemprop = "text">
You have a rule to create a .pdf file with a .md file is not. That's fine, because it's not what you want to do. You want to create a single pdf file from all to .md files (as I think). Therefore, eat all items stuff; You do not need to create all those personal pdf files.
There are many other minor problems: You are not creating the same file name as your goal ( report- print.md vs. $ (output) / Report-print.PDF ), you should use automatic variables, etc.)
Just mess up your file:
Source: = Draft Output: = Distribution Source: = $ (Wildcard $ (source) / * .md) All: $ (output) /report-print.pdf $ (output) /report-print.pdf: $ (source) cat $ ^ | Pandok \ - Required geometry: a4paper \ --number-sections \ --toc \ --f markdown \ -s \ -o $ @ .PHONY: Clear: RM-F $ (output) / *. Pdf
No comments:
Post a Comment