Cleanup more and rearrange targets.

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Cristian Ionescu-Idbohrn 2013-02-19 15:04:57 +01:00 committed by Dirk Hohndel
parent bc98b3f6f2
commit 17638aa7b0

View file

@ -5,19 +5,7 @@ ASCIIDOC = asciidoc
A2X = a2x
BROWSER = firefox
all: $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text)
doc: $(HTMLDOC)
show: $(HTMLDOC)
$(BROWSER) $<
$(HTMLDOC): $(DOCSOURCE)
$(ASCIIDOC) $<
# Alternatively::
$(DOCNAME).xhtml: $(DOCSOURCE)
$(A2X) --icons -f xhtml $<
all: doc $(addprefix $(DOCNAME).,pdf text)
$(DOCNAME).text: $(DOCSOURCE)
$(A2X) -f text $<
@ -25,6 +13,16 @@ $(DOCNAME).text: $(DOCSOURCE)
$(DOCNAME).pdf: $(DOCSOURCE)
$(A2X) -f pdf $<
doc $(HTMLDOC): $(DOCSOURCE)
$(ASCIIDOC) $<
# Alternatively::
$(DOCNAME).xhtml: $(DOCSOURCE)
$(A2X) --icons -f xhtml $<
show: $(HTMLDOC)
$(BROWSER) $<
clean:
rm -f *~ docbook-xsl.css $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text)
rm -fr images