diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-06-16 13:18:28 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-06-16 13:18:28 +0000 |
| commit | 2098d8bfd83aaf0364542ec33ebc7039784b0852 (patch) | |
| tree | 1d51bba57496d4b823691460d2f103d589d2e088 /documentation/Makefile | |
| parent | ff1feb8adb1a349d06870f44d0d6058432797bd8 (diff) | |
Generate Doxyfile and Doxybook from common source file Doxyfile.in.
Now we have less files to edit, and Doxyfile.in is shared with the
CMake generation of Doxyfile and Doxybook.
Besides that two files with FLTK version numbers are now removed (less
work for future version updates).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Makefile')
| -rw-r--r-- | documentation/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/documentation/Makefile b/documentation/Makefile index d6bcd7dd1..e58d968b0 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -67,6 +67,7 @@ alldocs: docs dist: docs clean: + $(RM) Doxyfile Doxybook $(RM) fltk.pdf refman.pdf src/fltk-book.tex $(RMDIR) html latex $(RM) *~ *.bck *.bak *.log @@ -126,6 +127,31 @@ uninstall-linux uninstall-osx: $(RM) $(DESTDIR)$(mandir)/man6/checkers.6 $(RM) $(DESTDIR)$(mandir)/man6/sudoku.6 +# The documentation is generated using doxygen. There are two control files +# for doxygen: Doxyfile for html documentation and Doxybook for pdf docs. +# Both files are generated from the common source file Doxyfile.in. +# Note that Doxyfile.in is shared with CMake to configure these files. + +Doxyfile: Doxyfile.in + echo "Generating Doxyfile ..." + sed -e's,@FL_VERSION@,$(FL_VERSION),' \ + -e's,@GENERATE_HTML@,YES,' \ + -e's,@GENERATE_LATEX@,NO,' \ + -e's, @LATEX_HEADER@,,' \ + -e's,@CMAKE_CURRENT_SOURCE_DIR@/,,' \ + -e's,@CMAKE_SOURCE_DIR@/,../,' \ + < $< > $@ + +Doxybook: Doxyfile.in + echo "Generating Doxybook ..." + sed -e's,@FL_VERSION@,$(FL_VERSION),' \ + -e's,@GENERATE_HTML@,NO,' \ + -e's,@GENERATE_LATEX@,YES,' \ + -e's,@LATEX_HEADER@,src/fltk-book.tex,' \ + -e's,@CMAKE_CURRENT_SOURCE_DIR@/,,' \ + -e's,@CMAKE_SOURCE_DIR@/,../,' \ + < $< > $@ + # The HTML files are generated using doxygen, and this needs # an installed doxygen version and may take some time, so this target # is not made by default. |
