mk: Fix warnings about duplicated rules
The footer.tex rule didn't depend on $(1) of the macro it was being defined in, so it was getting duplicated, causing many warnings.
This commit is contained in:
parent
167bfaf234
commit
1a7e55f4f5
1 changed files with 4 additions and 4 deletions
|
@ -147,6 +147,10 @@ SHOULD_BUILD_PDF_DOC_$(1) = 1
|
||||||
endef
|
endef
|
||||||
$(foreach docname,$(PDF_DOCS),$(eval $(call DEF_SHOULD_BUILD_PDF_DOC,$(docname))))
|
$(foreach docname,$(PDF_DOCS),$(eval $(call DEF_SHOULD_BUILD_PDF_DOC,$(docname))))
|
||||||
|
|
||||||
|
doc/footer.tex: $(D)/footer.inc | doc/
|
||||||
|
@$$(call E, pandoc: $$@)
|
||||||
|
$$(CFG_PANDOC) --from=html --to=latex $$< --output=$$@
|
||||||
|
|
||||||
define DEF_DOC
|
define DEF_DOC
|
||||||
|
|
||||||
# HTML (rustdoc)
|
# HTML (rustdoc)
|
||||||
|
@ -163,10 +167,6 @@ doc/$(1).epub: $$(D)/$(1).md | doc/
|
||||||
@$$(call E, pandoc: $$@)
|
@$$(call E, pandoc: $$@)
|
||||||
$$(CFG_PANDOC) $$(PANDOC_EPUB_OPTS) $$< --output=$$@
|
$$(CFG_PANDOC) $$(PANDOC_EPUB_OPTS) $$< --output=$$@
|
||||||
|
|
||||||
doc/footer.tex: $(D)/footer.inc | doc/
|
|
||||||
@$$(call E, pandoc: $$@)
|
|
||||||
$$(CFG_PANDOC) --from=html --to=latex $$< --output=$$@
|
|
||||||
|
|
||||||
# PDF (md =(pandoc)=> tex =(pdflatex)=> pdf)
|
# PDF (md =(pandoc)=> tex =(pdflatex)=> pdf)
|
||||||
DOC_TARGETS += doc/$(1).tex
|
DOC_TARGETS += doc/$(1).tex
|
||||||
doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/
|
doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue