Makefile.am 7.62 KB
Newer Older
1
SUBDIRS = libegg libpanel-applet-private libpanel-util
Tom Tromey's avatar
Tom Tromey committed
2

3
4
5
6
7
bin_PROGRAMS = \
	gnome-panel 			\
	gnome-desktop-item-edit		\
	panel-test-applets
libexec_SCRIPTS = gnome-panel-add
Martin Baulig's avatar
Martin Baulig committed
8

9
10
AM_CPPFLAGS =							\
	$(PANEL_CFLAGS)						\
11
12
	-I.							\
	-I$(srcdir)						\
13
	-I$(top_builddir)/gnome-panel				\
Vincent Untz's avatar
Vincent Untz committed
14
	-I$(top_builddir)/gnome-panel/libpanel-util		\
15
	-DPANELDATADIR=\""$(datadir)/gnome-panel"\"		\
16
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
Vincent Untz's avatar
Vincent Untz committed
17
	-DBUILDERDIR=\""$(uidir)"\"				\
18
	-DICONDIR=\""$(datadir)/gnome-panel/pixmaps"\"		\
19
	$(DISABLE_DEPRECATED_CFLAGS)
20

21
AM_CFLAGS = $(WARN_CFLAGS)
22

23
panel_sources =			\
24
25
	panel-typebuiltins.c	\
	panel-typebuiltins.h	\
26
27
	panel-marshal.c		\
	panel-marshal.h		\
28
	main.c			\
29
30
	panel-widget.c		\
	button-widget.c		\
Martin Baulig's avatar
Martin Baulig committed
31
	xstuff.c		\
32
	panel-session.c		\
33
	panel-compatibility.c	\
34
35
36
	panel.c			\
	applet.c		\
	panel-util.c		\
37
	panel-gconf.c		\
38
	panel-properties-dialog.c	\
39
	panel-run-dialog.c	\
40
41
	menu.c			\
	panel-context-menu.c	\
42
	launcher.c		\
43
	panel-applet-frame.c	\
44
	panel-applets-manager.c	\
jacob berkman's avatar
jacob berkman committed
45
	panel-shell.c		\
46
	panel-background.c	\
47
	panel-background-monitor.c	\
48
	panel-stock-icons.c	\
49
	panel-action-button.c	\
50
51
52
	panel-menu-bar.c	\
	panel-menu-button.c	\
	panel-menu-items.c	\
53
	panel-separator.c	\
54
	panel-recent.c		\
55
	panel-action-protocol.c	\
56
	panel-toplevel.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
57
	panel-struts.c		\
58
59
60
61
62
	panel-frame.c		\
	panel-xutils.c		\
	panel-multiscreen.c	\
	panel-a11y.c		\
	panel-bindings.c	\
63
	panel-profile.c		\
Mark McLoughlin's avatar
Mark McLoughlin committed
64
	panel-force-quit.c	\
65
	panel-lockdown.c	\
66
	panel-addto.c		\
67
	panel-ditem-editor.c	\
68
	panel-layout.c		\
69
	panel-modules.c		\
70
	panel-object-loader.c	\
71
	panel-applet-info.c
72

73
panel_headers =			\
74
75
	panel-types.h		\
	panel-widget.h		\
76
	panel-globals.h		\
77
78
	button-widget.h		\
	xstuff.h		\
79
	panel-session.h		\
80
81
82
	panel-compatibility.h	\
	panel.h			\
	applet.h		\
83
	panel-util.h		\
84
	panel-properties-dialog.h	\
85
	panel-gconf.h		\
86
	panel-run-dialog.h	\
87
88
	menu.h			\
	panel-context-menu.h	\
89
	launcher.h		\
90
	panel-applet-frame.h	\
91
	panel-applets-manager.h	\
92
	panel-shell.h		\
93
	panel-background.h	\
94
	panel-background-monitor.h	\
95
	panel-stock-icons.h	\
96
	panel-action-button.h	\
97
98
99
	panel-menu-bar.h	\
	panel-menu-button.h	\
	panel-menu-items.h	\
100
	panel-separator.h	\
101
	panel-recent.h		\
102
	panel-action-protocol.h	\
103
	panel-toplevel.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
104
	panel-struts.h		\
105
106
107
108
109
	panel-frame.h		\
	panel-xutils.h		\
	panel-multiscreen.h	\
	panel-a11y.h		\
	panel-bindings.h	\
110
	panel-profile.h		\
111
	panel-enums.h		\
112
	panel-enums-gsettings.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
113
	panel-force-quit.h	\
114
	panel-lockdown.h	\
115
	panel-addto.h		\
116
	panel-ditem-editor.h	\
117
	panel-icon-names.h	\
118
	panel-layout.h		\
119
	panel-modules.h		\
120
	panel-object-loader.h	\
121
	panel-schemas.h		\
122
	panel-applet-info.h
123

124
125
gnome_panel_SOURCES =			\
	$(panel_sources)		\
126
127
128
129
130
131
	$(panel_headers)

gnome_panel_CPPFLAGS = 				\
	$(AM_CPPFLAGS)				\
	$(XRANDR_CFLAGS)			\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
132
133
	-DGMENU_I_KNOW_THIS_IS_UNSTABLE		\
	-DGNOME_DESKTOP_USE_UNSTABLE_API
134

135
gnome_panel_LDADD =		\
136
137
138
139
	$(top_builddir)/gnome-panel/libegg/libegg.la					\
	$(top_builddir)/gnome-panel/libpanel-applet-private/libpanel-applet-private.la	\
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la			\
	$(PANEL_LIBS)									\
140
	$(XRANDR_LIBS)									\
141
	$(X_LIBS)
142

143
144
gnome_panel_LDFLAGS = -export-dynamic

145
146
147
148
149
gnome_desktop_item_edit_SOURCES =	\
	gnome-desktop-item-edit.c	\
	panel-ditem-editor.c		\
	panel-marshal.c			\
	panel-util.c			\
150
	xstuff.c
151
152

gnome_desktop_item_edit_LDADD = 	\
153
154
155
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la	\
	$(PANEL_LIBS)							\
	$(X_LIBS)
156

157
panel_test_applets_SOURCES =		\
158
159
	panel-modules.c			\
	panel-applet-info.c		\
160
161
162
163
	panel-applets-manager.c		\
	panel-marshal.c			\
	panel-test-applets.c

164
165
166
167
168
panel_test_applets_CPPFLAGS =			\
	$(AM_CPPFLAGS)				\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
	-DPANEL_APPLETS_DIR=\"$(appletsdir)\"

169
170
171
172
panel_test_applets_LDADD = 		\
	$(top_builddir)/gnome-panel/libpanel-applet-private/libpanel-applet-private-mini.la	\
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la				\
	$(PANEL_LIBS)
173

174
175
panel_test_applets_LDFLAGS = -export-dynamic

176
177
178
179
180
181
gnome-panel-add: gnome-panel-add.in Makefile
	$(AM_V_GEN)sed 						\
		-e s!\@PYTHON\@!@PYTHON@! 			\
		-e s!\@PANEL_APPLETS_DIR\@!$(appletsdir)! 	\
		< $< > $@
	$(AM_V_at)chmod a+x $@
182

183
184
185
panel_enum_headers =						\
	$(top_srcdir)/gnome-panel/panel-enums.h			\
	$(top_srcdir)/gnome-panel/panel-enums-gsettings.h	\
186
	$(top_srcdir)/gnome-panel/panel-types.h
187
188

panel-marshal.h: panel-marshal.list $(GLIB_GENMARSHAL)
189
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --header --prefix=panel_marshal > $@
190
191

panel-marshal.c: panel-marshal.list $(GLIB_GENMARSHAL)
192
	$(AM_V_GEN)echo "#include \"panel-marshal.h\"" > $@ && \
193
194
195
	$(GLIB_GENMARSHAL) $< --body --prefix=panel_marshal >> $@

panel-typebuiltins.c: @REBUILD@ $(panel_enum_headers)
196
	$(AM_V_GEN)glib-mkenums \
197
			--fhead "#include <glib-object.h>\n" \
198
199
			--fhead "#include \"panel-typebuiltins.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
Mark McLoughlin's avatar
remove.    
Mark McLoughlin committed
200
			--fprod "\n#include \"@filename@\"\n" \
201
			--vhead "static const GEnumValue _@enum_name@_values[] = {" \
202
203
204
205
206
			--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" \
207
			--vtail "    type = g_enum_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
208
			--vtail "  return type;\n}\n\n" \
209
210
211
		$(panel_enum_headers) > $@

panel-typebuiltins.h: @REBUILD@ $(panel_enum_headers)
212
	$(AM_V_GEN)glib-mkenums \
213
			--fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \
214
215
216
217
218
			--fhead "#define __PANEL_TYPEBUILTINS_H__ 1\n\n" \
			--fhead "G_BEGIN_DECLS\n\n" \
			--ftail "G_END_DECLS\n\n" \
			--ftail "#endif /* __PANEL_TYPEBUILTINS_H__ */\n" \
			--fprod "\n/* --- @filename@ --- */" \
219
			--eprod "#define PANEL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
220
			--eprod "GType @enum_name@_get_type (void);\n" \
221
222
223
224
225
226
227
		$(panel_enum_headers) > $@

BUILT_SOURCES = \
	panel-typebuiltins.c		\
	panel-typebuiltins.h		\
	panel-marshal.c			\
	panel-marshal.h
228

229
230
231
232
233
234
235
236
237
238
239
240
uidir = $(datadir)/gnome-panel/ui
ui_DATA =					\
	panel-properties-dialog.ui		\
	panel-run-dialog.ui			\
	panel-test-applets.ui

desktopdir = $(datadir)/applications
desktop_in_files = gnome-panel.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

@INTLTOOL_DESKTOP_RULE@

Vincent Untz's avatar
Vincent Untz committed
241
entriesdir       = $(GCONF_SCHEMA_FILE_DIR)
242
entries_DATA     = panel-default-setup.entries
243

244
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
245
schemas_in_files =				\
246
247
248
	panel-global.schemas.in 		\
	panel-general.schemas.in		\
	panel-toplevel.schemas.in		\
249
	panel-object.schemas.in
250
schemas_DATA     = panel-compatibility.schemas $(schemas_in_files:.schemas.in=.schemas)
251
252
253

@INTLTOOL_SCHEMAS_RULE@

254
if GCONF_SCHEMAS_INSTALL
255
install-data-local:
Mark McLoughlin's avatar
Mark McLoughlin committed
256
	if test -z "$(DESTDIR)" ; then \
257
258
		for p in $(schemas_DATA) ; do \
			GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/gnome-panel/$$p ; \
259
		done ; \
Vincent Untz's avatar
Vincent Untz committed
260
261
		$(GCONFTOOL) --direct --config-source=$(GCONF_SCHEMA_CONFIG_SOURCE) --load $(srcdir)/panel-default-setup.entries ; \
		$(GCONFTOOL) --direct --config-source=$(GCONF_SCHEMA_CONFIG_SOURCE) --load $(srcdir)/panel-default-setup.entries /apps/panel ; \
Mark McLoughlin's avatar
Mark McLoughlin committed
262
	fi
263
264
265
266
uninstall-local:
	for p in $(schema_DATA) ; do \
		GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(top_builddir)/applets/ngome-panel/$$p ; \
	done
267
endif
Mark McLoughlin's avatar
Mark McLoughlin committed
268

269
270
271
272
273
274
275
276
277
278
279
EXTRA_DIST =					\
	$(ui_DATA)				\
	nothing.cP				\
	nothing.h				\
	$(schemas_in_files)			\
	panel-compatibility.schemas		\
	panel-marshal.list			\
	$(entries_DATA)				\
	$(desktop_in_files)			\
	gnome-panel-add.in

280
281
CLEANFILES = \
	$(BUILT_SOURCES) \
Mark McLoughlin's avatar
Mark McLoughlin committed
282
	$(schemas_in_files:.schemas.in=.schemas) \
283
	$(sys_DATA) \
284
285
	$(desktop_DATA) \
	gnome-panel-add
286
287
288

dist-hook:
	cd $(distdir) ; rm -f $(CLEANFILES)
289
290

-include $(top_srcdir)/git.mk