Repository : ssh://git@open-mesh.org/doc
On branches: batman-adv-doc,master
commit e8a10297bbed72d5055ee51c428c9f2f3300dfc5 Author: Sven Eckelmann sven.eckelmann@gmx.de Date: Fri Jan 23 11:47:45 2009 +0100
Make generation of pdf more generic
e8a10297bbed72d5055ee51c428c9f2f3300dfc5 Makefile | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile index e15d8082..f838a75e 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,26 @@ default: all all: batman_doc -.PHONY: clean images -batman_doc: Makefile *.docbook images - xmlto html batman.docbook - xmlto fo batman.docbook - fop batman.fo -ps batman.ps - ps2pdf batman.ps +.PHONY: clean images batman_doc batman_iv_only_doc +.SUFFIXES: .docbook .fo .ps .pdf .html +batman_doc: batman.pdf batman.html +batman_iv_only_doc: batman_iv_only.pdf batman_iv_only.html
-batman_iv_only_doc: Makefile *.docbook images - xmlto html batman_iv_only.docbook - xmlto fo batman_iv_only.docbook - fop batman_iv_only.fo -ps batman_iv_only.ps - ps2pdf batman_iv_only.ps +batman_iv_only.html: Makefile *.docbook images +batman_iv_only.pdf: Makefile *.docbook images +batman.html: Makefile *.docbook images +batman.pdf: Makefile *.docbook images + +.docbook.fo: + xmlto fo $< + +.docbook.html: + xmlto xhtml-nochunks $< + +.fo.ps: + fop $< -ps $@ + +.ps.pdf: + ps2pdf $<
images: make -C images/