summaryrefslogtreecommitdiff
path: root/documentation/Makefile
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-10-14 23:00:13 +0000
committerFabien Costantini <fabien@onepost.net>2008-10-14 23:00:13 +0000
commit7592d7c5880061b2e17f2c3fb9136b8a68f5c280 (patch)
tree4ace10a40f01592c18935700a1c5171075d99ad2 /documentation/Makefile
parent497afccb07164373e0de6639e754d7d691f1926f (diff)
Doxygen makefile: added new html and pdf targets, to use it run : make html, make pdf. for the last case, when an error is detected, the gen stops and you may have to run manually pdflatex again to have a correct toc ...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Makefile')
-rw-r--r--documentation/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index f9a9f3966..644285480 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -136,13 +136,13 @@ MANPAGES = fltk.$(CAT3EXT) fltk-config.$(CAT1EXT) fluid.$(CAT1EXT) \
all: $(MANPAGES)
-alldocs: refman.pdf html/index.html $(MANPAGES)
+alldocs: pdf html $(MANPAGES)
clean:
# $(RM) fltk.ps
$(RM) refman.pdf
$(RMDIR) html latex
- $(RM) *~ *.bck *.bck
+ $(RM) *~ *.bck *.bck *.bak
depend:
@@ -194,6 +194,9 @@ uninstall-linux uninstall-osx:
# Base html files are now the readable ones, so this target is not make by
# default...
+
+html: html/index.html
+
html/index.html: $(IMAGEFILES)
echo "Generating HTML documentation..."
-$(RMDIR) html
@@ -205,10 +208,23 @@ html/index.html: $(IMAGEFILES)
# $(RM) fltk.ps
# -$(HTMLDOC) --verbose --batch fltk.book $(MEDIA) -f fltk.ps
-refman.pdf: html/index.html latex/intro.tex $(HTMLFILES) $(IMAGEFILES)
- echo "Generating PDF documentation..."
- $(RM) refman.pdf
- (cd latex; make; cp refman.pdf ..)
+pdf: refman.pdf
+
+refman.pdf: latex/refman.tex
+ (cd latex; pdflatex refman.tex)
+ (cd latex; makeindex refman.idx)
+ (cd latex; pdflatex refman.tex)
+ latex_count=5; \
+ cd latex ; \
+ while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
+ do \
+ echo "Rerunning latex...." ;\
+ pdflatex refman.tex ;\
+ latex_count=`expr $$latex_count - 1` ;\
+ done ; \
+ cd ..
+
+latex/refman.tex: html/index.html
#
# End of "$Id$".