subsurface/Documentation/Makefile
Miika Turkia 8facc61e8f [PATCH] Adding screen captures of dive planning
[Dirk Hohndel: removed the images folder from the Documentation directory
               Makefile clean target]

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-02-19 06:55:38 -08:00

27 lines
501 B
Makefile

DOCNAME = user-manual
DOCSOURCE = $(DOCNAME).txt
HTMLDOC = $(DOCNAME).html
ASCIIDOC = asciidoc
A2X = a2x
BROWSER = firefox
all: doc $(addprefix $(DOCNAME).,pdf text)
$(DOCNAME).text: $(DOCSOURCE)
$(A2X) -f text $<
$(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)