From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Tue, 25 Oct 2011 12:18:12 +0200 Subject: [Buildroot] [PATCH] manual: refactor the targets into GENDOC macro. In-Reply-To: <1318366792-13507-1-git-send-email-arnout@mind.be> (Arnout Vandecappelle's message of "Tue, 11 Oct 2011 22:59:52 +0200") References: <201110112257.11996.arnout@mind.be> <1318366792-13507-1-git-send-email-arnout@mind.be> Message-ID: <87hb2xwf17.fsf@macbook.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) writes: Arnout> From: "Arnout Vandecappelle (Essensium/Mind)" Arnout> Also add a clean target, give absolute path to a2x, add a dependency Arnout> on the output file, and add to .PHONY. Arnout> +define GENDOC Arnout> +$(call GENDOC_INNER,$(1),xhtml,html,html,HTML) Arnout> +$(call GENDOC_INNER,$(1),chunked,split-html,chunked,Split HTML) Arnout> +$(call GENDOC_INNER,$(1),pdf,pdf,pdf,PDF,--dblatex-opts "-P latex.output.revhistory=0") Arnout> +$(call GENDOC_INNER,$(1),text,txt,text,Text) Arnout> +$(call GENDOC_INNER,$(1),epub,epub,epub,EPUB) Arnout> +clean: clean-$(1) Arnout> +clean-$(1): Arnout> + $(Q)$(RM) -r $(O)/docs/$(1) This removes the entire docs/manual, including the source files, so I changed this so they are put in docs/manual/, and seperate clean-manual- clean targets. Other than that it looks good, thanks. -- Bye, Peter Korsgaard