File: Makefile.am

package info (click to toggle)
geany 2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,448 kB
  • sloc: ansic: 168,606; cpp: 77,562; sh: 5,344; makefile: 1,694; cs: 1,233; javascript: 1,024; python: 580; f90: 537; vhdl: 504; sql: 503; lisp: 436; fortran: 389; php: 278; ada: 201; ruby: 163; java: 131; asm: 131; perl: 119; cobol: 88; tcl: 77; erlang: 73; xml: 66; ml: 27; sed: 16; pascal: 15; haskell: 6
file content (195 lines) | stat: -rw-r--r-- 5,777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
man_MANS=geany.1

if INSTALL_HTML_DOCS
htmldocimagesdir = $(docdir)/html/images
dist_htmldocimages_DATA = \
	images/build_menu_commands_dialog.png \
	images/edit_change_history.png \
	images/find_dialog.png \
	images/find_in_files_dialog.png \
	images/main_window.png \
	images/pref_dialog_edit_completions.png \
	images/pref_dialog_edit_display.png \
	images/pref_dialog_edit_features.png \
	images/pref_dialog_edit_indentation.png \
	images/pref_dialog_files.png \
	images/pref_dialog_gen_misc.png \
	images/pref_dialog_gen_startup.png \
	images/pref_dialog_interface_interface.png \
	images/pref_dialog_interface_notebook.png \
	images/pref_dialog_interface_toolbar.png \
	images/pref_dialog_keys.png \
	images/pref_dialog_printing.png \
	images/pref_dialog_templ.png \
	images/pref_dialog_tools.png \
	images/pref_dialog_various.png \
	images/pref_dialog_vte.png \
	images/replace_dialog.png \
	images/sidebar_documents_only.png \
	images/sidebar_show_paths.png \
	images/sidebar_show_tree.png
endif

doc_DATA = \
	$(top_srcdir)/AUTHORS \
	$(top_srcdir)/ChangeLog \
	$(top_srcdir)/COPYING \
	$(top_srcdir)/NEWS \
	$(top_srcdir)/README \
	$(top_srcdir)/THANKS \
	$(top_srcdir)/TODO

DOCDIR = $(DESTDIR)$(docdir)

EXTRA_DIST = \
	geany.html \
	geany.css \
	geany.txt \
	geany.1

# HTML user manual and hacking file
if WITH_RST2HTML

geany.html: $(srcdir)/geany.css $(srcdir)/geany.txt
	$(AM_V_GEN)$(RST2HTML) -stg --stylesheet=$(srcdir)/geany.css $(srcdir)/geany.txt $@

hacking.html: $(srcdir)/geany.css $(top_srcdir)/HACKING
	$(AM_V_GEN)$(RST2HTML) -stg --stylesheet=$(srcdir)/geany.css $(top_srcdir)/HACKING $@

all-local: geany.html hacking.html

# clean on 'maintainer-clean' rather than 'clean' in case it was not
# built by Make but rather part of the distribution.  This is fine even
# then, as configure will properly require what is needed to build it
# again if it is missing.
maintainer-clean-local: maintainer-clean-html-local
maintainer-clean-html-local:
	-rm -f geany.html

clean-local: clean-html-local
clean-html-local:
	-rm -f hacking.html

endif

# PDF user manual
if WITH_RST2PDF

geany-$(VERSION).pdf: geany.txt
	$(AM_V_GEN)$(RST2PDF) $(srcdir)/geany.txt -o $@

all-local: geany-$(VERSION).pdf

clean-local: clean-pdf-local
clean-pdf-local:
	-rm -f geany-$(VERSION).pdf

endif

AT=@

# API Documentation
if WITH_DOXYGEN

# $(AT) instead of @ so that configure doesn't mess up the rules already
Doxyfile: Doxyfile.in
	$(AM_V_GEN)$(SED) \
		-e 's,$(AT)top_srcdir$(AT),$(top_srcdir),' \
		-e 's,$(AT)top_builddir$(AT),$(top_builddir),' \
		-e 's,$(AT)VERSION$(AT),$(VERSION),' \
		-e 's,$(AT)GIRONLY$(AT),@internal,' \
		-e 's,$(AT)HTML$(AT),YES,' \
		-e 's,$(AT)XML$(AT),NO,' \
		-e 's,$(AT)SORT$(AT),YES,' \
		-e 's,$(AT)WARN$(AT),YES,' \
		$< > $@ || ( $(RM) -f $@ ; exit 1 )

doxygen_sources = \
	$(srcdir)/plugins.dox \
	$(srcdir)/pluginsignals.c \
	$(srcdir)/pluginsymbols.c \
	$(srcdir)/stash-example.c \
	$(srcdir)/stash-gui-example.c

EXTRA_DIST += Doxyfile.in $(doxygen_sources)

doxygen_dependencies = \
	$(doxygen_sources) \
	$(top_srcdir)/src/*.[ch] \
	$(top_srcdir)/plugins/geanyplugin.h \
	$(top_srcdir)/src/tagmanager/tm_source_file.[ch] \
	$(top_srcdir)/src/tagmanager/tm_workspace.[ch] \
	$(top_srcdir)/src/tagmanager/tm_tag.h \
	$(top_srcdir)/src/tagmanager/tm_parser.h

Doxyfile.stamp: Doxyfile $(doxygen_dependencies)
	$(AM_V_GEN)$(DOXYGEN) Doxyfile && echo "" > $@

ALL_LOCAL_TARGETS = Doxyfile.stamp
CLEAN_LOCAL_TARGETS = clean-api-docs-local

clean-api-docs-local:
	-rm -rf reference/ Doxyfile.stamp doxygen_*

if ENABLE_GTKDOC_HEADER

Doxyfile-gi: Doxyfile.in
	$(AM_V_GEN)$(SED) \
		-e 's,$(AT)top_srcdir$(AT),$(top_srcdir),' \
		-e 's,$(AT)top_builddir$(AT),$(top_builddir),' \
		-e 's,$(AT)VERSION$(AT),$(VERSION),' \
		-e 's,$(AT)GIRONLY$(AT),,' \
		-e 's,$(AT)HTML$(AT),NO,' \
		-e 's,$(AT)XML$(AT),YES,' \
		-e 's,$(AT)SORT$(AT),NO,' \
		-e 's,$(AT)WARN$(AT),NO,' \
		$< > $@ || ( $(RM) -f $@ ; exit 1 )

# we depend on Doxyfile.stamp not have this run in parallel with it to avoid
# concurrent Doxygen runs, which might overwrite each other's files
Doxyfile-gi.stamp: Doxyfile-gi Doxyfile.stamp $(doxygen_dependencies)
	$(AM_V_GEN)$(DOXYGEN) Doxyfile-gi && echo "" > $@

geany-gtkdoc.h: Doxyfile-gi.stamp $(top_srcdir)/scripts/gen-api-gtkdoc.py
	$(AM_V_GEN)$(PYTHON) $(top_srcdir)/scripts/gen-api-gtkdoc.py xml -d $(builddir) -o $@ \
			--sci-output geany-sciwrappers-gtkdoc.h

geany-sciwrappers-gtkdoc.h: geany-gtkdoc.h

geany_gtkdocincludedir = $(includedir)/geany/gtkdoc
nodist_geany_gtkdocinclude_HEADERS = geany-gtkdoc.h geany-sciwrappers-gtkdoc.h

ALL_LOCAL_TARGETS += geany-gtkdoc.h geany-sciwrappers-gtkdoc.h
CLEAN_LOCAL_TARGETS += clean-gtkdoc-header-local

clean-gtkdoc-header-local:
	rm -rf xml/ \
		Doxyfile Doxyfile.stamp Doxyfile-gi Doxyfile-gi.stamp \
		geany-gtkdoc.h geany-sciwrappers-gtkdoc.h

endif

all-local: $(ALL_LOCAL_TARGETS)
clean-local: $(CLEAN_LOCAL_TARGETS)

endif

uninstall-local:
	rm -f $(DOCDIR)/html/index.html
	rm -f $(DOCDIR)/manual.txt
	rm -f $(DOCDIR)/ScintillaLicense.txt
	rm -f $(DOCDIR)/LexillaLicense.txt

# manually install some files under another name
install-data-local:
if INSTALL_HTML_DOCS
	$(mkinstalldirs) $(DOCDIR)/html
#	as we don't install with the automated mechanism so we can rename the file,
#	we need to find the source file in the right location (either builddir or srcdir)
	dir=$(builddir); test -f "$$dir/geany.html" || dir=$(srcdir); \
	$(INSTALL_DATA) "$$dir/geany.html" $(DOCDIR)/html/index.html
endif
	$(mkinstalldirs) $(DOCDIR)
	$(INSTALL_DATA) $(srcdir)/geany.txt $(DOCDIR)/manual.txt
	$(INSTALL_DATA) $(top_srcdir)/scintilla/License.txt $(DOCDIR)/ScintillaLicense.txt
	$(INSTALL_DATA) $(top_srcdir)/scintilla/lexilla/License.txt $(DOCDIR)/LexillaLicense.txt