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

Peter Korsgaard jacmet at uclibc.org
Tue Oct 25 10:18:12 UTC 2011


>>>>> "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)

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

Other than that it looks good, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list