2 DOCDIR = $(DESTDIR)$(docdir)
3 IMAGE_FILES = images/*.png
4 EXTRA_DIST = geany.html geany.css geany.txt geany.1 \
5 plugins.dox pluginsymbols.c pluginsignals.c \
6 stash-example.c stash-gui-example.c \
8 $(srcdir)/$(IMAGE_FILES)
11 rst2latex -stg --documentoptions="10pt,a4paper" --output-encoding=utf8 $(srcdir)/geany.txt geany.tex
13 rm -f geany.tex geany.aux geany.log geany.out
14 mv $(srcdir)/geany.pdf geany-$(VERSION).pdf
19 hacking-doc: ../HACKING
20 rst2html -stg --stylesheet=geany.css $^ hacking.html
22 # when generating documentation, first try rst2html.py as it is the upstream default
24 (rst2html.py --version) < /dev/null > /dev/null 2>&1 && \
25 rst2html.py -stg --stylesheet=geany.css $(srcdir)/geany.txt geany.html || \
26 rst2html -stg --stylesheet=geany.css $(srcdir)/geany.txt geany.html
37 $(mkinstalldirs) $(DOCDIR)/html/images
38 for file in `ls $(srcdir)/$(IMAGE_FILES)`; do \
39 if [ -f $$file ]; then \
40 basefile=`echo $$file | sed -e 's,^.*/,,'`; \
41 $(INSTALL_DATA) $$file $(DOCDIR)/html/images/$$basefile; \
44 $(INSTALL_DATA) $(srcdir)/geany.html $(DOCDIR)/html/index.html
45 $(INSTALL_DATA) $(srcdir)/geany.txt $(DOCDIR)/manual.txt
46 $(INSTALL_DATA) $(top_srcdir)/README $(DOCDIR)
47 $(INSTALL_DATA) $(top_srcdir)/ChangeLog $(DOCDIR)
48 $(INSTALL_DATA) $(top_srcdir)/NEWS $(DOCDIR)
49 $(INSTALL_DATA) $(top_srcdir)/COPYING $(DOCDIR)
50 $(INSTALL_DATA) $(top_srcdir)/AUTHORS $(DOCDIR)
51 $(INSTALL_DATA) $(top_srcdir)/TODO $(DOCDIR)
52 $(INSTALL_DATA) $(top_srcdir)/THANKS $(DOCDIR)
53 $(INSTALL_DATA) $(top_srcdir)/scintilla/License.txt $(DOCDIR)/ScintillaLicense.txt