[geany/geany] f94650: Autotools: use the target file as the base rule for building documentation
Colomban Wendling
git-noreply at xxxxx
Tue Dec 17 15:02:50 UTC 2013
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Tue, 17 Dec 2013 15:02:50 UTC
Commit: f94650b48ee10b4356675fde5d0b56d3e3135d0b
https://github.com/geany/geany/commit/f94650b48ee10b4356675fde5d0b56d3e3135d0b
Log Message:
-----------
Autotools: use the target file as the base rule for building documentation
This allows automatic building of the file when required, and allows
user to request building that specific file.
Modified Paths:
--------------
doc/Makefile.am
Modified: doc/Makefile.am
20 files changed, 12 insertions(+), 8 deletions(-)
===================================================================
@@ -7,25 +7,29 @@ EXTRA_DIST = geany.html geany.css geany.txt geany.1 \
makefile.win32 \
$(srcdir)/$(IMAGE_FILES)
-pdf: geany.txt
- rst2latex -stg --documentoptions="10pt,a4paper" --output-encoding=utf8 $(srcdir)/geany.txt geany.tex
+geany-$(VERSION).pdf: geany.txt
+ rst2latex -stg --documentoptions="10pt,a4paper" --output-encoding=utf8 $< geany.tex
(absbuilddir="$$(pwd)/$(builddir)"; \
cd "$(srcdir)" && \
pdflatex -output-directory="$$absbuilddir" "$$absbuilddir/geany.tex")
rm -f geany.tex geany.aux geany.log geany.out
- mv geany.pdf geany-$(VERSION).pdf
+ mv geany.pdf $@
api-doc: Doxyfile
doxygen
-hacking-doc: ../HACKING
- rst2html -stg --stylesheet=$(srcdir)/geany.css $< hacking.html
+hacking.html: ../HACKING
+ rst2html -stg --stylesheet=$(srcdir)/geany.css $< $@
# when generating documentation, first try rst2html.py as it is the upstream default
-doc: geany.txt
+geany.html: geany.txt
(rst2html.py --version) < /dev/null > /dev/null 2>&1 && \
- rst2html.py -stg --stylesheet=$(srcdir)/geany.css $< geany.html || \
- rst2html -stg --stylesheet=$(srcdir)/geany.css $< geany.html
+ rst2html.py -stg --stylesheet=$(srcdir)/geany.css $< $@ || \
+ rst2html -stg --stylesheet=$(srcdir)/geany.css $< $@
+
+hacking-doc: hacking.html
+doc: geany.html
+pdf: geany-$(VERSION).pdf
doc-clean:
rm -f geany.html
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list