1998-12-29 17:18:27 +03:00
|
|
|
#
|
2015-04-13 23:33:46 +03:00
|
|
|
# Makefile for the Fast Light Tool Kit (FLTK) documentation.
|
1998-12-29 17:18:27 +03:00
|
|
|
#
|
2024-01-11 02:33:22 +03:00
|
|
|
# Copyright 1998-2024 by Bill Spitzak and others.
|
1998-12-29 17:18:27 +03:00
|
|
|
#
|
2011-07-19 08:49:30 +04:00
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/COPYING.php
|
1998-12-29 17:18:27 +03:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# Please see the following page on how to report bugs and issues:
|
2005-04-16 04:13:17 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/bugs.php
|
1998-12-29 17:18:27 +03:00
|
|
|
#
|
|
|
|
|
2000-06-06 01:21:24 +04:00
|
|
|
# Get configuration stuff...
|
|
|
|
include ../makeinclude
|
|
|
|
|
2011-01-05 15:55:10 +03:00
|
|
|
# make sure that all docs are (re-)created independent of missing deps
|
|
|
|
.PHONY: pdf html refman.pdf
|
|
|
|
|
2008-10-17 16:42:28 +04:00
|
|
|
SRC_DOCDIR = ./src
|
1999-01-13 19:25:17 +03:00
|
|
|
|
2001-11-27 05:09:45 +03:00
|
|
|
# These are the HTML "source" files...
|
2008-10-15 21:35:39 +04:00
|
|
|
HTMLFILES = \
|
2008-10-17 16:42:28 +04:00
|
|
|
$(SRC_DOCDIR)/index.dox \
|
|
|
|
$(SRC_DOCDIR)/preface.dox \
|
|
|
|
$(SRC_DOCDIR)/intro.dox \
|
|
|
|
$(SRC_DOCDIR)/basics.dox \
|
|
|
|
$(SRC_DOCDIR)/common.dox \
|
2021-12-08 17:00:33 +03:00
|
|
|
$(SRC_DOCDIR)/coordinates.dox \
|
2020-07-11 02:03:09 +03:00
|
|
|
$(SRC_DOCDIR)/resize.dox \
|
2008-10-17 16:42:28 +04:00
|
|
|
$(SRC_DOCDIR)/editor.dox \
|
2009-03-26 02:12:48 +03:00
|
|
|
$(SRC_DOCDIR)/drawing.dox \
|
2008-10-17 16:42:28 +04:00
|
|
|
$(SRC_DOCDIR)/events.dox \
|
|
|
|
$(SRC_DOCDIR)/subclassing.dox \
|
|
|
|
$(SRC_DOCDIR)/opengl.dox \
|
|
|
|
$(SRC_DOCDIR)/fluid.dox \
|
2023-01-21 19:14:41 +03:00
|
|
|
$(SRC_DOCDIR)/fltk-options.dox \
|
2008-10-17 16:42:28 +04:00
|
|
|
$(SRC_DOCDIR)/advanced.dox \
|
|
|
|
$(SRC_DOCDIR)/unicode.dox \
|
|
|
|
$(SRC_DOCDIR)/enumerations.dox \
|
|
|
|
$(SRC_DOCDIR)/glut.dox \
|
|
|
|
$(SRC_DOCDIR)/forms.dox \
|
|
|
|
$(SRC_DOCDIR)/osissues.dox \
|
2020-01-08 20:41:50 +03:00
|
|
|
$(SRC_DOCDIR)/migration_1_4.dox \
|
2008-10-17 16:42:28 +04:00
|
|
|
$(SRC_DOCDIR)/development.dox \
|
|
|
|
$(SRC_DOCDIR)/license.dox \
|
2011-10-25 06:17:29 +04:00
|
|
|
$(SRC_DOCDIR)/examples.dox \
|
2023-11-14 18:01:52 +03:00
|
|
|
$(SRC_DOCDIR)/faq.dox \
|
|
|
|
$(SRC_DOCDIR)/Fl_Terminal.dox
|
2002-04-28 20:41:17 +04:00
|
|
|
|
2008-10-17 16:42:28 +04:00
|
|
|
MANPAGES = $(SRC_DOCDIR)/fltk.$(CAT3EXT) $(SRC_DOCDIR)/fltk-config.$(CAT1EXT) \
|
|
|
|
$(SRC_DOCDIR)/fluid.$(CAT1EXT) $(SRC_DOCDIR)/blocks.$(CAT6EXT) \
|
2023-01-21 19:14:41 +03:00
|
|
|
$(SRC_DOCDIR)/checkers.$(CAT6EXT) $(SRC_DOCDIR)/sudoku.$(CAT6EXT) \
|
|
|
|
$(SRC_DOCDIR)/fltk-options.$(CAT1EXT)
|
2001-02-12 18:12:14 +03:00
|
|
|
|
2002-01-07 21:05:32 +03:00
|
|
|
all: $(MANPAGES)
|
1998-12-29 17:18:27 +03:00
|
|
|
|
2015-04-13 23:33:46 +03:00
|
|
|
# Use `make docs' to create all docs for distribution files.
|
|
|
|
# You need installed versions of Doxygen and LaTeX for this.
|
2011-01-05 15:55:10 +03:00
|
|
|
|
2015-04-13 23:33:46 +03:00
|
|
|
docs: all html pdf
|
|
|
|
|
|
|
|
# Synonyms for docs:
|
|
|
|
|
|
|
|
alldocs: docs
|
|
|
|
dist: docs
|
2001-10-24 21:04:30 +04:00
|
|
|
|
1998-12-29 17:18:27 +03:00
|
|
|
clean:
|
2015-06-16 16:18:28 +03:00
|
|
|
$(RM) Doxyfile Doxybook
|
2022-08-10 19:51:53 +03:00
|
|
|
$(RM) copyright.dox generated.dox
|
2022-09-23 16:27:05 +03:00
|
|
|
$(RM) fltk.pdf refman.pdf src/fltk-title.tex src/fltk-book.tex.in src/fltk-book.tex
|
2008-10-15 02:12:25 +04:00
|
|
|
$(RMDIR) html latex
|
2010-12-05 17:45:06 +03:00
|
|
|
$(RM) *~ *.bck *.bak *.log
|
2009-04-24 13:20:17 +04:00
|
|
|
$(RM) $(MANPAGES) $(SRC_DOCDIR)/*.0
|
1998-12-29 17:18:27 +03:00
|
|
|
|
1998-12-29 17:59:00 +03:00
|
|
|
depend:
|
|
|
|
|
2001-02-12 18:12:14 +03:00
|
|
|
install: $(MANPAGES)
|
2010-12-05 17:45:06 +03:00
|
|
|
echo "Installing documentation files in $(DESTDIR)$(docdir) ..."
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(docdir)
|
2008-10-18 00:46:27 +04:00
|
|
|
if test -f html/index.html ; then \
|
|
|
|
for file in html/* ; do \
|
2007-02-06 22:35:28 +03:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir); \
|
2008-10-18 00:46:27 +04:00
|
|
|
done \
|
|
|
|
fi
|
2010-12-31 00:08:01 +03:00
|
|
|
if test -f fltk.pdf ; then \
|
|
|
|
echo "Installing fltk.pdf in $(DESTDIR)$(docdir) ..."; \
|
|
|
|
$(INSTALL_DATA) fltk.pdf $(DESTDIR)$(docdir); \
|
|
|
|
fi
|
2010-12-05 17:45:06 +03:00
|
|
|
echo "Installing man pages in $(DESTDIR)$(mandir) ..."
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat1
|
2008-10-17 16:42:28 +04:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-config.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
2023-01-21 19:14:41 +03:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-options.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat3
|
2008-10-17 16:42:28 +04:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk.$(CAT3EXT) $(DESTDIR)$(mandir)/cat3
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/man1
|
2008-10-17 16:42:28 +04:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.man $(DESTDIR)$(mandir)/man1/fluid.1
|
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-config.man $(DESTDIR)$(mandir)/man1/fltk-config.1
|
2023-01-21 19:14:41 +03:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk-options.man $(DESTDIR)$(mandir)/man1/fltk-options.1
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/man3
|
2008-10-17 16:42:28 +04:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/fltk.man $(DESTDIR)$(mandir)/man3/fltk.3
|
2001-02-12 18:12:14 +03:00
|
|
|
|
2006-01-15 21:36:16 +03:00
|
|
|
install-linux install-osx:
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat6
|
2008-10-17 16:42:28 +04:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/blocks.$(CAT6EXT) $(DESTDIR)$(mandir)/cat6
|
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/checkers.$(CAT6EXT) $(DESTDIR)$(mandir)/cat6
|
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/sudoku.$(CAT6EXT) $(DESTDIR)$(mandir)/cat6
|
2007-02-06 22:35:28 +03:00
|
|
|
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/man6
|
2008-10-17 16:42:28 +04:00
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/blocks.man $(DESTDIR)$(mandir)/man6/blocks.6
|
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/checkers.man $(DESTDIR)$(mandir)/man6/checkers.6
|
|
|
|
$(INSTALL_MAN) $(SRC_DOCDIR)/sudoku.man $(DESTDIR)$(mandir)/man6/sudoku.6
|
2006-01-15 21:36:16 +03:00
|
|
|
|
2001-11-20 00:25:35 +03:00
|
|
|
|
|
|
|
uninstall:
|
2004-10-19 00:22:25 +04:00
|
|
|
$(RMDIR) $(DESTDIR)$(docdir)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat1/fluid.$(CAT1EXT)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/man1/fluid.1
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat1/fltk-config.$(CAT1EXT)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/man1/fltk-config.1
|
2023-01-21 19:14:41 +03:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat1/fltk-options.$(CAT1EXT)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/man1/fltk-options.1
|
2004-10-19 00:22:25 +04:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat3/fltk.$(CAT3EXT)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/man3/fltk.3
|
2001-11-20 00:25:35 +03:00
|
|
|
|
2006-01-15 21:36:16 +03:00
|
|
|
uninstall-linux uninstall-osx:
|
2006-08-25 10:58:33 +04:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat6/blocks.$(CAT6EXT)
|
2006-01-15 21:36:16 +03:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat6/checkers.$(CAT6EXT)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/cat6/sudoku.$(CAT6EXT)
|
2006-08-25 10:58:33 +04:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/man6/blocks.6
|
2006-01-15 21:36:16 +03:00
|
|
|
$(RM) $(DESTDIR)$(mandir)/man6/checkers.6
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/man6/sudoku.6
|
2001-11-20 00:25:35 +03:00
|
|
|
|
2015-06-16 16:18:28 +03:00
|
|
|
# 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.
|
|
|
|
|
2023-08-30 18:24:39 +03:00
|
|
|
# Note: There's no way to enable the "Driver Documentation" via configure+make,
|
2024-02-07 20:30:11 +03:00
|
|
|
# please use CMake 'FLTK_INCLUDE_DRIVER_DOCS' instead.
|
2023-08-30 18:24:39 +03:00
|
|
|
# Alternatively (if you really need it) edit this Makefile and
|
|
|
|
# replace the two lines below containing "@DRIVER_DOCS@" to read:
|
|
|
|
# -e's, @DRIVER_DOCS@, DriverDev,' \
|
|
|
|
# (w/o leading '#') to enable the "Driver Documentation" section.
|
|
|
|
# Please take care of copying tabs and spaces literally.
|
|
|
|
# Note: There's no intention to enable this via configure option (use CMake).
|
|
|
|
|
2022-08-10 19:51:53 +03:00
|
|
|
Doxyfile: Doxyfile.in generated.dox copyright.dox
|
2015-06-16 16:18:28 +03:00
|
|
|
echo "Generating Doxyfile ..."
|
2024-01-11 02:33:22 +03:00
|
|
|
./convert_doxyfile "$(DOXYDOC)" $< $@ Doxyfile_error.log
|
2020-06-13 16:19:27 +03:00
|
|
|
sed -e's,@FLTK_VERSION@,$(FLTK_VERSION),' \
|
2015-06-16 16:18:28 +03:00
|
|
|
-e's,@GENERATE_HTML@,YES,' \
|
|
|
|
-e's,@GENERATE_LATEX@,NO,' \
|
|
|
|
-e's, @LATEX_HEADER@,,' \
|
2023-08-30 18:24:39 +03:00
|
|
|
-e's, @DRIVER_DOCS@,,' \
|
2022-08-10 19:51:53 +03:00
|
|
|
-e's,@CMAKE_CURRENT_SOURCE_DIR@,.,' \
|
|
|
|
-e's,@CMAKE_CURRENT_BINARY_DIR@,,' \
|
|
|
|
-e's,@FLTK_SOURCE_DIR@,..,' \
|
2023-09-07 19:28:55 +03:00
|
|
|
-i $@
|
2015-06-16 16:18:28 +03:00
|
|
|
|
2022-08-10 19:51:53 +03:00
|
|
|
Doxybook: Doxyfile.in generated.dox copyright.dox
|
2015-06-16 16:18:28 +03:00
|
|
|
echo "Generating Doxybook ..."
|
2024-01-11 02:33:22 +03:00
|
|
|
./convert_doxyfile "$(DOXYDOC)" $< $@ Doxybook_error.log
|
2020-06-13 16:19:27 +03:00
|
|
|
sed -e's,@FLTK_VERSION@,$(FLTK_VERSION),' \
|
2015-06-16 16:18:28 +03:00
|
|
|
-e's,@GENERATE_HTML@,NO,' \
|
|
|
|
-e's,@GENERATE_LATEX@,YES,' \
|
|
|
|
-e's,@LATEX_HEADER@,src/fltk-book.tex,' \
|
2023-08-30 18:24:39 +03:00
|
|
|
-e's, @DRIVER_DOCS@,,' \
|
2022-08-10 19:51:53 +03:00
|
|
|
-e's,@CMAKE_CURRENT_SOURCE_DIR@,.,' \
|
|
|
|
-e's,@CMAKE_CURRENT_BINARY_DIR@,,' \
|
|
|
|
-e's,@FLTK_SOURCE_DIR@,..,' \
|
2023-09-07 19:28:55 +03:00
|
|
|
-i $@
|
2015-06-16 16:18:28 +03:00
|
|
|
|
2015-04-13 23:33:46 +03:00
|
|
|
# The HTML files are generated using doxygen, and this needs
|
2010-12-05 17:45:06 +03:00
|
|
|
# an installed doxygen version and may take some time, so this target
|
|
|
|
# is not made by default.
|
2015-04-13 23:33:46 +03:00
|
|
|
# Use `make html' or `make docs' to create the html docs.
|
2008-10-15 03:00:13 +04:00
|
|
|
|
2015-04-25 20:23:21 +03:00
|
|
|
html: $(HTMLFILES) Doxyfile
|
2001-02-12 18:12:14 +03:00
|
|
|
echo "Generating HTML documentation..."
|
2008-10-15 02:12:25 +04:00
|
|
|
-$(RMDIR) html
|
|
|
|
-$(INSTALL_DIR) html
|
2024-01-11 02:33:22 +03:00
|
|
|
-"$(DOXYDOC)"
|
2010-12-05 17:45:06 +03:00
|
|
|
if test "x$(DOXYDOC)" = "x" ; then \
|
|
|
|
echo "Sorry - doxygen not found. Please install doxygen and run configure."; \
|
|
|
|
fi
|
2009-03-21 13:29:42 +03:00
|
|
|
|
2015-04-13 23:33:46 +03:00
|
|
|
# The PDF documentation (fltk.pdf) is generated using doxygen and LaTeX, and
|
|
|
|
# this needs installed Doxygen and LaTeX programs and may take some time, so
|
|
|
|
# this target is not made by default.
|
|
|
|
# Use `make pdf' or `make docs' to create the PDF docs.
|
1998-12-29 17:18:27 +03:00
|
|
|
|
2011-01-05 15:55:10 +03:00
|
|
|
pdf: refman.pdf
|
2008-10-15 21:35:39 +04:00
|
|
|
cp -f latex/refman.pdf fltk.pdf
|
2008-10-15 03:00:13 +04:00
|
|
|
|
2014-10-05 03:42:17 +04:00
|
|
|
refman.pdf: $(HTMLFILES) Doxybook src/fltk-book.tex
|
2011-01-05 15:55:10 +03:00
|
|
|
-$(RMDIR) latex
|
2010-12-05 17:45:06 +03:00
|
|
|
echo "Generating PDF documentation ..."
|
2024-01-11 02:33:22 +03:00
|
|
|
"$(DOXYDOC)" Doxybook
|
2015-04-13 23:33:46 +03:00
|
|
|
./make_pdf
|
1998-12-29 17:18:27 +03:00
|
|
|
|
2022-09-23 16:27:05 +03:00
|
|
|
src/fltk-title.tex: src/fltk-title.tex.in
|
|
|
|
echo "Generating $@ ..."
|
|
|
|
GIT_REVISION=`git rev-parse --short=10 HEAD`; \
|
|
|
|
sed -e"s/@GIT_REVISION@/$$GIT_REVISION/g" \
|
|
|
|
< $< > $@
|
|
|
|
|
|
|
|
src/fltk-book.tex.in: src/fltk-title.tex
|
|
|
|
echo "Generating $@ ..."
|
2024-01-11 02:33:22 +03:00
|
|
|
./make_header "$(DOXYDOC)" $< $@
|
2022-09-23 16:27:05 +03:00
|
|
|
|
2014-10-05 03:42:17 +04:00
|
|
|
src/fltk-book.tex: src/fltk-book.tex.in
|
2020-09-20 15:44:14 +03:00
|
|
|
echo "Generating $@ ..."
|
2024-01-11 02:33:22 +03:00
|
|
|
DOXY_VERSION=`"$(DOXYDOC)" --version|cut -f1 -d' '`; \
|
2014-10-05 03:42:17 +04:00
|
|
|
YEAR=`date +%Y`; \
|
2015-04-25 20:23:21 +03:00
|
|
|
sed -e"s/@YEAR@/$$YEAR/g" \
|
2020-06-13 16:19:27 +03:00
|
|
|
-e"s/@FLTK_VERSION@/$(FLTK_VERSION)/g" \
|
2015-04-25 20:23:21 +03:00
|
|
|
-e"s/@DOXY_VERSION@/$$DOXY_VERSION/g" \
|
2022-09-23 16:27:05 +03:00
|
|
|
< $< > $@
|
2022-08-10 19:51:53 +03:00
|
|
|
|
|
|
|
generated.dox: generated.dox.in
|
|
|
|
echo "Generating $@ ..."
|
|
|
|
CURRENT_DATE=`date "+%b %d, %Y"`; \
|
|
|
|
GIT_REVISION=`git rev-parse --short=10 HEAD`; \
|
2024-01-11 02:33:22 +03:00
|
|
|
DOXYGEN_VERSION_SHORT=`"$(DOXYDOC)" --version|cut -f1 -d' '`; \
|
2022-08-10 19:51:53 +03:00
|
|
|
sed -e"s/@CURRENT_DATE@/$$CURRENT_DATE/g" \
|
|
|
|
-e"s/@GIT_REVISION@/$$GIT_REVISION/g" \
|
|
|
|
-e"s/@DOXYGEN_VERSION_SHORT@/$$DOXYGEN_VERSION_SHORT/g" \
|
|
|
|
< $< > $@
|
|
|
|
|
|
|
|
copyright.dox: copyright.dox.in
|
|
|
|
echo "Generating $@ ..."
|
|
|
|
YEAR=`date +%Y`; \
|
|
|
|
sed -e"s/@YEAR@/$$YEAR/g" \
|
|
|
|
< $< > $@
|