mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
de8bfe9bc3
This could be made much more elegant. For now it serves its purpose. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
30 lines
624 B
Makefile
30 lines
624 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)
|
|
@echo "if asciidoc isn't found no HTML documentation is produced but Subsurface is still functional"
|
|
$(ASCIIDOC) $< || true
|
|
|
|
# Alternatively::
|
|
$(DOCNAME).xhtml: $(DOCSOURCE)
|
|
$(A2X) --icons -f xhtml $<
|
|
|
|
show: $(HTMLDOC)
|
|
$(BROWSER) $<
|
|
|
|
clean:
|
|
rm -f *~ docbook-xsl.css $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text)
|