Makefile.am 8.11 KB
Newer Older
1
include $(top_srcdir)/Makefile.shared
2

3 4
bin_PROGRAMS=					\
	nautilus				\
5
	nautilus-autorun-software		\
6
	nautilus-connect-server			\
7 8 9 10
	$(NULL)

libexec_PROGRAMS=				\
	nautilus-convert-metadata		\
11
	nautilus-shell-search-provider		\
12
	$(NULL)
Elliot Lee's avatar
Elliot Lee committed
13

Anders Carlsson's avatar
Anders Carlsson committed
14 15 16 17
INCLUDES =							\
	-I$(top_srcdir) 					\
	-I$(top_srcdir)/cut-n-paste-code			\
	-I$(top_builddir)/libnautilus-private 			\
18 19 20
	$(BASE_CFLAGS) 						\
	$(COMMON_CFLAGS)					\
	$(NAUTILUS_CFLAGS)					\
21
	$(WARNING_CFLAGS)					\
22
	$(EXIF_CFLAGS)						\
23
	$(EXEMPI_CFLAGS)                                        \
Anders Carlsson's avatar
Anders Carlsson committed
24 25
	-DDATADIR=\""$(datadir)"\" 				\
	-DLIBDIR=\""$(libdir)"\" 				\
26
	-DLIBEXECDIR=\""$(libexecdir)"\" 			\
Anders Carlsson's avatar
Anders Carlsson committed
27
	-DNAUTILUS_DATADIR=\""$(datadir)/nautilus"\" 		\
28
	-DUIDIR=\""$(datadir)/nautilus/ui"\" 		\
Anders Carlsson's avatar
Anders Carlsson committed
29 30 31 32
	-DNAUTILUS_PIXMAPDIR=\""$(datadir)/pixmaps/nautilus"\" 	\
	-DPREFIX=\""$(prefix)"\" 				\
	-DSYSCONFDIR=\""$(sysconfdir)"\" 			\
	-DVERSION="\"$(VERSION)\"" 				\
33
	$(DISABLE_DEPRECATED) 		                        \
34
	$(NULL)
35

36
LDADD =\
37
	$(top_builddir)/libnautilus-private/libnautilus-private.la  \
38 39 40
	$(BASE_LIBS) \
	$(COMMON_LIBS) \
	$(NAUTILUS_LIBS) \
41
	$(CORE_LIBS) \
42
	$(EXIF_LIBS) \
43
	$(EXEMPI_LIBS) \
44
	$(POPT_LIBS) \
45
	$(NULL)
Elliot Lee's avatar
Elliot Lee committed
46

47 48 49 50 51
dbus_freedesktop_built_sources =			\
	nautilus-freedesktop-generated.c		\
	nautilus-freedesktop-generated.h

$(dbus_freedesktop_built_sources) : Makefile.am $(top_srcdir)/data/freedesktop-dbus-interfaces.xml
52 53 54 55 56 57 58 59
	gdbus-codegen									\
		--interface-prefix org.freedesktop.					\
		--c-namespace NautilusFreedesktop					\
		--c-generate-object-manager						\
		--generate-c-code nautilus-freedesktop-generated			\
		$(top_srcdir)/data/freedesktop-dbus-interfaces.xml			\
		$(NULL)

60
UI_FILES = \
61
	nautilus-app-menu.ui			\
62 63
	nautilus-bookmarks-window.ui		\
	nautilus-file-management-properties.ui	\
64
	nautilus-canvas-view-ui.xml		\
65
	nautilus-desktop-canvas-view-ui.xml	\
66 67 68 69 70
	nautilus-directory-view-ui.xml		\
	nautilus-list-view-ui.xml		\
	nautilus-shell-ui.xml			\
	$(NULL)

71 72 73 74
headers =					\
	nautilus-special-location-bar.h		\
	$(NULL)

75 76 77 78 79 80
nautilus-resources.c: nautilus.gresource.xml $(UI_FILES)
	glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name nautilus $(srcdir)/nautilus.gresource.xml

nautilus-resources.h: nautilus.gresource.xml
	glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name nautilus $(srcdir)/nautilus.gresource.xml

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
nautilus-enum-types.h: stamp-nautilus-enum-types.h
	$(AM_V_GEN)true

stamp-nautilus-enum-types.h: $(headers) Makefile
	$(AM_V_GEN)(cd $(srcdir) \
	&& glib-mkenums \
			--fhead "#ifndef __NAUTILUS_ENUM_TYPES_H__\n" \
			--fhead "#define __NAUTILUS_ENUM_TYPES_H__ 1\n\n" \
			--fhead "#include <glib-object.h>\n\n" \
			--fhead "G_BEGIN_DECLS\n\n" \
			--ftail "G_END_DECLS\n\n" \
			--ftail "#endif /* __NAUTILUS_ENUM_TYPES_H__ */\n" \
			--fprod "#include \"@filename@\"\n" \
			--eprod "#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
			--eprod "GType @enum_name@_get_type (void);\n" \
		$(headers) ) > xgen-gth \
	&& (cmp -s xgen-gth nautilus-enum-type.h || cp xgen-gth nautilus-enum-types.h) \
	&& rm -f xgen-gth \
	&& echo timestamp > $(@F)

nautilus-enum-types.c: $(headers) Makefile
	$(AM_V_GEN)(cd $(srcdir) \
	&& glib-mkenums \
			--fhead "#include <config.h>\n" \
			--fhead "#include <glib-object.h>\n" \
			--fhead "#include \"nautilus-enum-types.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
			--vhead "static const G@Type@Value _@enum_name@_values[] = {" \
			--vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
			--vtail "  { 0, NULL, NULL }\n};\n\n" \
			--vtail "GType\n@enum_name@_get_type (void)\n{\n" \
			--vtail "  static GType type = 0;\n\n" \
			--vtail "  if (!type)\n" \
			--vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
			--vtail "  return type;\n}\n\n" \
		$(headers) ) > xgen-gtc \
	&& cp xgen-gtc $(@F) \
	&& rm -f xgen-gtc
119

120 121
nautilus_built_sources = \
	$(dbus_freedesktop_built_sources) \
122 123
	nautilus-resources.c \
	nautilus-resources.h \
124 125
	nautilus-enum-types.h \
	nautilus-enum-types.c \
126 127
	$(NULL)

128
nautilus_SOURCES = \
129
	nautilus-actions.h			\
130
	nautilus-application.c			\
Darin Adler's avatar
Darin Adler committed
131
	nautilus-application.h			\
132
	nautilus-bookmark-list.c		\
Darin Adler's avatar
Darin Adler committed
133
	nautilus-bookmark-list.h		\
134
	nautilus-bookmarks-window.c		\
Darin Adler's avatar
Darin Adler committed
135
	nautilus-bookmarks-window.h		\
136 137 138 139
	nautilus-canvas-view.c			\
	nautilus-canvas-view.h			\
	nautilus-canvas-view-container.c	\
	nautilus-canvas-view-container.h	\
140 141
	nautilus-connect-server-dialog.c	\
	nautilus-connect-server-dialog.h	\
142 143
	nautilus-desktop-canvas-view.c		\
	nautilus-desktop-canvas-view.h		\
144 145
	nautilus-desktop-item-properties.c	\
	nautilus-desktop-item-properties.h	\
146
	nautilus-desktop-window.c		\
Darin Adler's avatar
Darin Adler committed
147
	nautilus-desktop-window.h		\
148 149
	nautilus-error-reporting.c		\
	nautilus-error-reporting.h		\
150 151
	nautilus-file-management-properties.c	\
	nautilus-file-management-properties.h	\
152 153
	nautilus-floating-bar.c			\
	nautilus-floating-bar.h			\
154 155
	nautilus-freedesktop-dbus.c		\
	nautilus-freedesktop-dbus.h		\
156 157
	nautilus-image-properties-page.c	\
	nautilus-image-properties-page.h	\
158 159 160 161 162
	nautilus-list-model.c			\
	nautilus-list-model.h			\
	nautilus-list-view-private.h 		\
	nautilus-list-view.c			\
	nautilus-list-view.h 			\
163
	nautilus-location-entry.c               \
164
	nautilus-location-entry.h               \
165
	nautilus-main.c 			\
166 167
	nautilus-mime-actions.c 		\
	nautilus-mime-actions.h 		\
168 169
	nautilus-notebook.c			\
	nautilus-notebook.h			\
170 171
	nautilus-pathbar.c			\
	nautilus-pathbar.h			\
172 173
	nautilus-places-sidebar.c		\
	nautilus-places-sidebar.h		\
174 175
	nautilus-previewer.c			\
	nautilus-previewer.h			\
176 177
	nautilus-progress-info-widget.c		\
	nautilus-progress-info-widget.h		\
178 179
	nautilus-progress-ui-handler.c		\
	nautilus-progress-ui-handler.h		\
180 181
	nautilus-properties-window.c		\
	nautilus-properties-window.h		\
182 183
	nautilus-query-editor.c			\
	nautilus-query-editor.h			\
184
	nautilus-self-check-functions.c 	\
Darin Adler's avatar
Darin Adler committed
185
	nautilus-self-check-functions.h 	\
186 187
	nautilus-special-location-bar.c		\
	nautilus-special-location-bar.h		\
188 189
	nautilus-toolbar.c			\
	nautilus-toolbar.h			\
190 191
	nautilus-trash-bar.c			\
	nautilus-trash-bar.h			\
192 193
	nautilus-view.c				\
	nautilus-view.h				\
194 195
	nautilus-view-dnd.c			\
	nautilus-view-dnd.h			\
196 197
	nautilus-view-factory.c 		\
	nautilus-view-factory.h 		\
198
	nautilus-window-menus.c         	\
Darin Adler's avatar
Darin Adler committed
199
	nautilus-window-private.h		\
200 201
	nautilus-window-slot.c			\
	nautilus-window-slot.h			\
202 203
	nautilus-window-slot-dnd.c		\
	nautilus-window-slot-dnd.h		\
204
	nautilus-window.c			\
Darin Adler's avatar
Darin Adler committed
205
	nautilus-window.h			\
206
	nautilus-window-types.h			\
207 208
	nautilus-x-content-bar.c		\
	nautilus-x-content-bar.h		\
209 210
	$(NULL)

211
nodist_nautilus_SOURCES = \
212
	$(nautilus_built_sources) \
213 214
	$(NULL)

215
EMPTY_VIEW_SOURCES = \
216
	nautilus-empty-view.c 			\
217 218 219 220 221 222
	nautilus-empty-view.h

if ENABLE_EMPTY_VIEW
nautilus_SOURCES += $(EMPTY_VIEW_SOURCES)
endif

223 224 225 226
nautilus_autorun_software_SOURCES= 			\
	nautilus-autorun-software.c			\
	$(NULL)

227 228 229 230 231 232
nautilus_connect_server_SOURCES= \
	nautilus-connect-server-dialog.c        \
	nautilus-connect-server-dialog.h        \
	nautilus-connect-server.c		\
	$(NULL)

233 234 235 236
nautilus_convert_metadata_SOURCES= \
	nautilus-convert-metadata.c	\
	$(NULL)

237 238 239 240 241 242 243 244 245 246 247 248 249
dbus_shell_search_provider_built_sources =		\
	nautilus-shell-search-provider-generated.c	\
	nautilus-shell-search-provider-generated.h

$(dbus_shell_search_provider_built_sources) : Makefile.am $(top_srcdir)/data/shell-search-provider-dbus-interfaces.xml
	gdbus-codegen									\
		--interface-prefix org.gnome.						\
		--c-namespace Nautilus							\
		--generate-c-code nautilus-shell-search-provider-generated		\
		$(top_srcdir)/data/shell-search-provider-dbus-interfaces.xml		\
		$(NULL)

nautilus_shell_search_provider_SOURCES = 		\
250 251
	nautilus-bookmark-list.h			\
	nautilus-bookmark-list.c			\
252 253 254 255 256 257 258 259 260 261 262 263
	nautilus-shell-search-provider.c		\
	$(NULL)

nodist_nautilus_shell_search_provider_SOURCES =		\
	$(dbus_shell_search_provider_built_sources)	\
	$(NULL)

BUILT_SOURCES = 					\
	$(nautilus_built_sources) 			\
	$(dbus_shell_search_provider_built_sources) 	\
	$(NULL)

264
TESTS=check-nautilus
265

266
@INTLTOOL_SERVER_RULE@
267

268
CLEANFILES = \
269
	$(BUILT_SOURCES)			\
270
	$(server_DATA)				\
271
	stamp-nautilus-enum-types.h		\
272 273
	$(NULL)

274
EXTRA_DIST =					\
275
	$(server_in_files)			\
276
	$(UI_FILES)				\
277
	nautilus.gresource.xml			\
278
	check-nautilus				\
279
	$(NULL)
280

281 282
dist-hook:
	cd $(distdir); rm -f $(CLEANFILES)
William Jon McCann's avatar
William Jon McCann committed
283 284

-include $(top_srcdir)/git.mk