Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean circular rules #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions doc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ $(foreach suf,odt ods odg odp doc docx xls xlsx ppt pptx,\
%.png: %.xcf
${CONVERT.xcf.png}

%.tex: %.md
${CONVERT.md.tex}
# no %.md: %.tex rule
define to_html_rule
%.html: %.$(1)
${CONVERT.$(1).html}
Expand Down
6 changes: 3 additions & 3 deletions doc.mk.nw
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ CONVERT.md.tex?=${MD2TEX} ${MD2TEXFLAGS} -o $@ $<
TEX2MD?= pandoc
TEX2MDFLAGS?= -s
CONVERT.tex.md?=${TEX2MD} ${TEX2MDFLAGS} -o $@ $<
@ This gives the following suffix rules.
@ Since we occasionally want to convert TeX to Markdown, we will not provide
any pattern rule.
<<MD to TeX>>=
%.tex: %.md
${CONVERT.md.tex}
# no %.md: %.tex rule
@

Sometimes we want to convert to HTML, we will use [[pandoc]] to convert both
Expand Down