From 17638aa7b0984352f5f5b360d0bfe50e4ee8235f Mon Sep 17 00:00:00 2001 From: Cristian Ionescu-Idbohrn Date: Tue, 19 Feb 2013 15:04:57 +0100 Subject: Cleanup more and rearrange targets. Signed-off-by: Cristian Ionescu-Idbohrn Signed-off-by: Dirk Hohndel --- Documentation/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Documentation/Makefile') diff --git a/Documentation/Makefile b/Documentation/Makefile index 1fbd88984..7e911e50f 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -5,25 +5,23 @@ ASCIIDOC = asciidoc A2X = a2x BROWSER = firefox -all: $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text) +all: doc $(addprefix $(DOCNAME).,pdf text) -doc: $(HTMLDOC) +$(DOCNAME).text: $(DOCSOURCE) + $(A2X) -f text $< -show: $(HTMLDOC) - $(BROWSER) $< +$(DOCNAME).pdf: $(DOCSOURCE) + $(A2X) -f pdf $< -$(HTMLDOC): $(DOCSOURCE) +doc $(HTMLDOC): $(DOCSOURCE) $(ASCIIDOC) $< # Alternatively:: $(DOCNAME).xhtml: $(DOCSOURCE) $(A2X) --icons -f xhtml $< -$(DOCNAME).text: $(DOCSOURCE) - $(A2X) -f text $< - -$(DOCNAME).pdf: $(DOCSOURCE) - $(A2X) -f pdf $< +show: $(HTMLDOC) + $(BROWSER) $< clean: rm -f *~ docbook-xsl.css $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text) -- cgit v1.2.3-70-g09d2