From 7aa27859a552f0e459110455a372e5a017bc6873 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 4 Oct 2014 23:42:17 +0000 Subject: Improve documentation generation (pdf only). Add file VERSION that includes the FLTK version number (only), generate fltk.pdf with automatic copyright year and doxygen version. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'documentation/Makefile') diff --git a/documentation/Makefile b/documentation/Makefile index 599e1c11b..24e7e7768 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -64,7 +64,7 @@ dist: all html pdf alldocs: dist clean: - $(RM) fltk.pdf refman.pdf + $(RM) fltk.pdf refman.pdf src/fltk-book.tex $(RMDIR) html latex $(RM) *~ *.bck *.bak *.log $(RM) $(MANPAGES) $(SRC_DOCDIR)/*.0 @@ -148,7 +148,7 @@ html-online: html pdf: refman.pdf cp -f latex/refman.pdf fltk.pdf -refman.pdf: $(HTMLFILES) Doxybook +refman.pdf: $(HTMLFILES) Doxybook src/fltk-book.tex -$(RMDIR) latex echo "Generating PDF documentation ..." $(DOXYDOC) Doxybook ;\ @@ -166,6 +166,13 @@ refman.pdf: $(HTMLFILES) Doxybook done ; \ cd ..) > pdfall.log 2>&1 +src/fltk-book.tex: src/fltk-book.tex.in + DOXY_VERSION=`$(DOXYDOC) --version`; \ + YEAR=`date +%Y`; \ + FLTK_VERSION=`cat ../VERSION`; \ + sed -e"s/@YEAR@/$$YEAR/g" -e"s/@VERSION@/$$FLTK_VERSION/g" \ + -e"s/@DOXY_VERSION@/$$DOXY_VERSION/g" < $< > $@ + # # End of "$Id$". # -- cgit v1.2.3