More GTK3 Waf build system adjustments
[geany-mirror.git] / doc / Makefile.am
blob79df6875823372f486cf1546913770f89b68abf0
1 man_MANS=geany.1
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 \
7         makefile.win32 \
8         $(srcdir)/$(IMAGE_FILES)
10 pdf: geany.txt
11         rst2latex -stg --documentoptions="10pt,a4paper" --output-encoding=utf8 $(srcdir)/geany.txt geany.tex
12         pdflatex geany.tex
13         rm -f geany.tex geany.aux geany.log geany.out
14         mv $(srcdir)/geany.pdf geany-$(VERSION).pdf
16 api-doc: Doxyfile
17         doxygen
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
23 doc: geany.txt
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
28 doc-clean:
29         rm -f geany.html
30         rm -f geany.1
31         rm -f *.pdf
33 uninstall-local:
34         rm -rf $(DOCDIR);
36 install-data-local:
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; \
42           fi \
43         done
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