Add option to insert line numbers (closes #3197150).
[geany-mirror.git] / doc / Makefile.am
blob8341191a0f5d77b2df97829ab15706a1012235de
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         $(srcdir)/$(IMAGE_FILES)
9 pdf: geany.txt
10         rst2latex -stg --documentoptions="10pt,a4paper" --output-encoding=utf8 $(srcdir)/geany.txt geany.tex
11         pdflatex geany.tex
12         rm -f geany.tex geany.aux geany.log geany.out
13         mv $(srcdir)/geany.pdf geany-$(VERSION).pdf
15 api-doc: Doxyfile
16         doxygen
18 hacking-doc: ../HACKING
19         rst2html -stg --stylesheet=geany.css $^ hacking.html
21 # when generating documentation, first try rst2html.py as it is the upstream default
22 doc: geany.txt
23         (rst2html.py --version) < /dev/null > /dev/null 2>&1 && \
24         rst2html.py -stg --stylesheet=geany.css $(srcdir)/geany.txt geany.html || \
25         rst2html -stg --stylesheet=geany.css $(srcdir)/geany.txt geany.html
27 doc-clean:
28         rm -f geany.html
29         rm -f geany.1
30         rm -f *.pdf
32 uninstall-local:
33         rm -rf $(DOCDIR);
35 install-data-local:
36         $(mkinstalldirs) $(DOCDIR)/html/images
37         for file in `ls $(srcdir)/$(IMAGE_FILES)`; do \
38           if [ -f $$file ]; then \
39             basefile=`echo $$file | sed -e 's,^.*/,,'`; \
40             $(INSTALL_DATA) $$file $(DOCDIR)/html/images/$$basefile; \
41           fi \
42         done
43         $(INSTALL_DATA) $(srcdir)/geany.html $(DOCDIR)/html/index.html
44         $(INSTALL_DATA) $(srcdir)/geany.txt $(DOCDIR)/manual.txt
45         $(INSTALL_DATA) $(top_srcdir)/README $(DOCDIR)
46         $(INSTALL_DATA) $(top_srcdir)/ChangeLog $(DOCDIR)
47         $(INSTALL_DATA) $(top_srcdir)/NEWS $(DOCDIR)
48         $(INSTALL_DATA) $(top_srcdir)/COPYING $(DOCDIR)
49         $(INSTALL_DATA) $(top_srcdir)/AUTHORS $(DOCDIR)
50         $(INSTALL_DATA) $(top_srcdir)/TODO $(DOCDIR)
51         $(INSTALL_DATA) $(top_srcdir)/THANKS $(DOCDIR)
52         $(INSTALL_DATA) $(top_srcdir)/scintilla/License.txt $(DOCDIR)/ScintillaLicense.txt