mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 22:50:31 +00:00
806f4f87e0
...to avoid generating the HTMLDOC target even if it needs not to. Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
29 lines
514 B
Makefile
29 lines
514 B
Makefile
DOCNAME = user-manual
|
|
DOCSOURCE = $(DOCNAME).txt
|
|
HTMLDOC = $(DOCNAME).html
|
|
ASCIIDOC = asciidoc
|
|
A2X = a2x
|
|
BROWSER = firefox
|
|
|
|
all: doc $(addprefix $(DOCNAME).,pdf text)
|
|
|
|
doc: $(HTMLDOC)
|
|
|
|
$(DOCNAME).text: $(DOCSOURCE)
|
|
$(A2X) -f text $<
|
|
|
|
$(DOCNAME).pdf: $(DOCSOURCE)
|
|
$(A2X) -f pdf $<
|
|
|
|
$(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)
|