[Buildroot] [PATCH] manual: refactor the targets into GENDOC macro.

Peter Korsgaard jacmet at sunsite.dk
Tue Oct 25 16:52:59 UTC 2011


>>>>> "Peter" == Peter Korsgaard <jacmet at uclibc.org> writes:

>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be> writes:
 Arnout> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout at mind.be>
 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)

 Peter> This removes the entire docs/manual, including the source files, so I
 Peter> changed this so they are put in docs/manual/<format>, and seperate
 Peter> clean-manual-<format> clean targets.

Ehh, forget this - I somehow missed the $(O)/

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list