diff options
author | Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> | 2013-02-19 14:56:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-19 06:50:20 -0800 |
commit | bc98b3f6f228e8857e76fc42eb658ae459215ab6 (patch) | |
tree | d6753c43bdac616a52c0cd2985b3ea007dc41acd /Documentation/Makefile | |
parent | b0377c4ae93b809e2de465f029e8b4ffeb968067 (diff) | |
download | subsurface-bc98b3f6f228e8857e76fc42eb658ae459215ab6.tar.gz |
Improved maitainability.
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>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r-- | Documentation/Makefile | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 2cf609982..1fbd88984 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -1,24 +1,30 @@ -ASCIIDOC=asciidoc -A2X=a2x -BROWSER=firefox +DOCNAME = user-manual +DOCSOURCE = $(DOCNAME).txt +HTMLDOC = $(DOCNAME).html +ASCIIDOC = asciidoc +A2X = a2x +BROWSER = firefox -doc: user-manual.html +all: $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text) -show: user-manual.html - $(BROWSER) user-manual.html +doc: $(HTMLDOC) -user-manual.html: user-manual.txt - $(ASCIIDOC) user-manual.txt +show: $(HTMLDOC) + $(BROWSER) $< + +$(HTMLDOC): $(DOCSOURCE) + $(ASCIIDOC) $< # Alternatively:: -user-manual.xhtml: user-manual.txt - $(A2X) --icons -f xhtml user-manual.txt +$(DOCNAME).xhtml: $(DOCSOURCE) + $(A2X) --icons -f xhtml $< -user-manual.text: user-manual.txt - $(A2X) -f text user-manual.txt +$(DOCNAME).text: $(DOCSOURCE) + $(A2X) -f text $< -user-manual.pdf: user-manual.txt - $(A2X) -f pdf user-manual.txt +$(DOCNAME).pdf: $(DOCSOURCE) + $(A2X) -f pdf $< clean: - rm -f user-manual.html user-manual.pdf user-manual.text + rm -f *~ docbook-xsl.css $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text) + rm -fr images |