2011-10-06 12:21:06 +00:00
|
|
|
# Optional documentation generation.
|
|
|
|
# localwin32.mk is an optional file to override make variables.
|
|
|
|
# Use localwin32.mk instead of editing variables as it is included in sub
|
|
|
|
# makefiles.
|
|
|
|
# Use localwin32.mk to override RST2HTML, DOXYGEN
|
|
|
|
|
|
|
|
RST2HTML=python rst2html.py
|
2014-04-28 11:57:35 +01:00
|
|
|
SED=sed
|
2011-10-06 12:21:06 +00:00
|
|
|
DOXYGEN=doxygen
|
2012-07-04 16:44:43 +01:00
|
|
|
CP = copy /y
|
2011-10-06 12:21:06 +00:00
|
|
|
-include ../localwin32.mk
|
|
|
|
|
2012-07-04 17:13:14 +01:00
|
|
|
ifdef MSYS
|
|
|
|
CP = cp
|
|
|
|
endif
|
|
|
|
|
2014-08-18 13:21:07 +01:00
|
|
|
# no PDF rule yet
|
|
|
|
all: html api-doc
|
2011-10-06 12:21:06 +00:00
|
|
|
|
2014-08-18 13:21:07 +01:00
|
|
|
html: geany.html hacking.html
|
|
|
|
|
|
|
|
geany.html: geany.txt geany.css
|
|
|
|
$(RST2HTML) -stg --stylesheet=geany.css $< $@
|
|
|
|
|
|
|
|
hacking.html: ../HACKING geany.css
|
|
|
|
$(RST2HTML) -stg --stylesheet=geany.css $< $@
|
2011-10-06 12:21:06 +00:00
|
|
|
|
2014-04-28 11:57:35 +01:00
|
|
|
# FIXME: we should also replace @VERSION@
|
2011-11-02 15:03:17 +00:00
|
|
|
Doxyfile: Doxyfile.in
|
|
|
|
$(CP) $< $@
|
2014-04-28 11:57:35 +01:00
|
|
|
$(SED) -i 's/@top_builddir@/../g' $@
|
|
|
|
$(SED) -i 's/@top_srcdir@/../g' $@
|
2011-11-02 15:03:17 +00:00
|
|
|
|
2011-10-06 12:21:06 +00:00
|
|
|
api-doc: Doxyfile
|
|
|
|
$(DOXYGEN)
|
|
|
|
|