mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
bc98b3f6f2
Cleans up more files. Got even an 'all' target :) Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
30 lines
536 B
Makefile
30 lines
536 B
Makefile
DOCNAME = user-manual
|
|
DOCSOURCE = $(DOCNAME).txt
|
|
HTMLDOC = $(DOCNAME).html
|
|
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 $<
|
|
|
|
$(DOCNAME).text: $(DOCSOURCE)
|
|
$(A2X) -f text $<
|
|
|
|
$(DOCNAME).pdf: $(DOCSOURCE)
|
|
$(A2X) -f pdf $<
|
|
|
|
clean:
|
|
rm -f *~ docbook-xsl.css $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text)
|
|
rm -fr images
|