From ab0998af8e54242bef52023d9ecc9bd2382da1c9 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 12 Mar 2014 10:35:17 -0700 Subject: [PATCH] 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. --- mk/docs.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mk/docs.mk b/mk/docs.mk index 703c0f4446104..9411957630760 100644 --- a/mk/docs.mk +++ b/mk/docs.mk @@ -147,6 +147,10 @@ SHOULD_BUILD_PDF_DOC_$(1) = 1 endef $(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 # HTML (rustdoc) @@ -163,10 +167,6 @@ doc/$(1).epub: $$(D)/$(1).md | doc/ @$$(call E, pandoc: $$@) $$(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) DOC_TARGETS += doc/$(1).tex doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/