Don't export on_motion_event() callback unnecessarily
[geany-mirror.git] / doc / Makefile.am
bloba348cc9c2365bee8a8056f607bedfcaf37f8c607
1 man_MANS=geany.1
3 if INSTALL_HTML_DOCS
4 htmldocimagesdir = $(docdir)/html/images
5 dist_htmldocimages_DATA = \
6         images/build_menu_commands_dialog.png \
7         images/find_dialog.png \
8         images/find_in_files_dialog.png \
9         images/main_window.png \
10         images/pref_dialog_edit_completions.png \
11         images/pref_dialog_edit_display.png \
12         images/pref_dialog_edit_features.png \
13         images/pref_dialog_edit_indentation.png \
14         images/pref_dialog_files.png \
15         images/pref_dialog_gen_misc.png \
16         images/pref_dialog_gen_startup.png \
17         images/pref_dialog_interface_interface.png \
18         images/pref_dialog_interface_notebook.png \
19         images/pref_dialog_interface_toolbar.png \
20         images/pref_dialog_keys.png \
21         images/pref_dialog_printing.png \
22         images/pref_dialog_templ.png \
23         images/pref_dialog_tools.png \
24         images/pref_dialog_various.png \
25         images/pref_dialog_vte.png \
26         images/replace_dialog.png
27 endif
29 doc_DATA = \
30         $(top_srcdir)/AUTHORS \
31         $(top_srcdir)/ChangeLog \
32         $(top_srcdir)/COPYING \
33         $(top_srcdir)/NEWS \
34         $(top_srcdir)/README \
35         $(top_srcdir)/THANKS \
36         $(top_srcdir)/TODO
38 DOCDIR = $(DESTDIR)$(docdir)
40 EXTRA_DIST = \
41         geany.html \
42         geany.css \
43         geany.txt \
44         geany.1 \
45         plugins.dox \
46         pluginsymbols.c \
47         pluginsignals.c \
48         stash-example.c \
49         stash-gui-example.c \
50         makefile.win32
52 # HTML user manual and hacking file
53 if WITH_RST2HTML
55 geany.html: $(srcdir)/geany.css $(srcdir)/geany.txt
56         $(AM_V_GEN)$(RST2HTML) -stg --stylesheet=$(srcdir)/geany.css $(srcdir)/geany.txt $@
58 hacking.html: $(srcdir)/geany.css $(top_srcdir)/HACKING
59         $(AM_V_GEN)$(RST2HTML) -stg --stylesheet=$(srcdir)/geany.css $(top_srcdir)/HACKING $@
61 all-local: geany.html hacking.html
63 # clean on 'maintainer-clean' rather than 'clean' in case it was not
64 # built by Make but rather part of the distribution.  This is fine even
65 # then, as configure will properly require what is needed to build it
66 # again if it is missing.
67 maintainer-clean-local: maintainer-clean-html-local
68 maintainer-clean-html-local:
69         -rm -f geany.html
71 clean-local: clean-html-local
72 clean-html-local:
73         -rm -f hacking.html
75 endif
77 # PDF user manual
78 if WITH_RST2PDF
80 geany-$(VERSION).pdf: geany.txt
81         $(AM_V_GEN)$(RST2PDF) $(srcdir)/geany.txt -o $@
83 all-local: geany-$(VERSION).pdf
85 clean-local: clean-pdf-local
86 clean-pdf-local:
87         -rm -f geany-$(VERSION).pdf
89 endif
91 # API Documentation
92 if WITH_DOXYGEN
94 doxygen_sources = \
95         $(srcdir)/*.[ch] \
96         $(srcdir)/*.dox \
97         $(top_srcdir)/src/*.[ch] \
98         $(top_srcdir)/plugins/geanyplugin.h \
99         $(top_srcdir)/tagmanager/src/tm_source_file.[ch] \
100         $(top_srcdir)/tagmanager/src/tm_workspace.[ch]
102 Doxyfile.stamp: Doxyfile $(doxygen_sources)
103         $(AM_V_GEN)$(DOXYGEN) Doxyfile && echo "" > $@
105 all-local: Doxyfile.stamp
107 clean-local: clean-api-docs-local
108 clean-api-docs-local:
109         -rm -rf reference/ Doxyfile.stamp doxygen_*
111 endif
113 uninstall-local:
114         rm -f $(DOCDIR)/html/index.html
115         rm -f $(DOCDIR)/manual.txt
116         rm -f $(DOCDIR)/ScintillaLicense.txt
118 # manually install some files under another name
119 install-data-local:
120 if INSTALL_HTML_DOCS
121         $(mkinstalldirs) $(DOCDIR)/html
122 #       as we don't install with the automated mechanism so we can rename the file,
123 #       we need to find the source file in the right location (either builddir or srcdir)
124         dir=$(builddir); test -f "$$dir/geany.html" || dir=$(srcdir); \
125         $(INSTALL_DATA) "$$dir/geany.html" $(DOCDIR)/html/index.html
126 endif
127         $(mkinstalldirs) $(DOCDIR)
128         $(INSTALL_DATA) $(srcdir)/geany.txt $(DOCDIR)/manual.txt
129         $(INSTALL_DATA) $(top_srcdir)/scintilla/License.txt $(DOCDIR)/ScintillaLicense.txt