Makefile.am 7.41 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
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
Vincent Untz's avatar
Vincent Untz committed
16
	-DBUILDERDIR=\""$(uidir)"\"				\
17
	-DICONDIR=\""$(datadir)/gnome-panel/pixmaps"\"		\
18
	$(DISABLE_DEPRECATED_CFLAGS)
19

20
AM_CFLAGS = $(WARN_CFLAGS)
21

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

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

118
119
gnome_panel_SOURCES =			\
	$(panel_sources)		\
120
121
122
123
124
125
	$(panel_headers)

gnome_panel_CPPFLAGS = 				\
	$(AM_CPPFLAGS)				\
	$(XRANDR_CFLAGS)			\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
126
127
	-DGMENU_I_KNOW_THIS_IS_UNSTABLE		\
	-DGNOME_DESKTOP_USE_UNSTABLE_API
128

129
gnome_panel_LDADD =		\
130
131
132
133
	$(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)									\
134
	$(XRANDR_LIBS)									\
135
	$(X_LIBS)
136

137
138
gnome_panel_LDFLAGS = -export-dynamic

139
140
141
142
143
gnome_desktop_item_edit_SOURCES =	\
	gnome-desktop-item-edit.c	\
	panel-ditem-editor.c		\
	panel-marshal.c			\
	panel-util.c			\
144
	xstuff.c
145
146

gnome_desktop_item_edit_LDADD = 	\
147
148
149
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la	\
	$(PANEL_LIBS)							\
	$(X_LIBS)
150

151
panel_test_applets_SOURCES =		\
152
153
	panel-modules.c			\
	panel-applet-info.c		\
154
155
156
157
	panel-applets-manager.c		\
	panel-marshal.c			\
	panel-test-applets.c

158
159
160
161
162
panel_test_applets_CPPFLAGS =			\
	$(AM_CPPFLAGS)				\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
	-DPANEL_APPLETS_DIR=\"$(appletsdir)\"

163
164
165
166
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)
167

168
169
panel_test_applets_LDFLAGS = -export-dynamic

170
171
172
173
174
175
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 $@
176

177
panel_enum_headers =					\
178
	$(top_srcdir)/gnome-panel/panel-enums.h		\
179
	$(top_srcdir)/gnome-panel/panel-types.h
180
181

panel-marshal.h: panel-marshal.list $(GLIB_GENMARSHAL)
182
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --header --prefix=panel_marshal > $@
183
184

panel-marshal.c: panel-marshal.list $(GLIB_GENMARSHAL)
185
	$(AM_V_GEN)echo "#include \"panel-marshal.h\"" > $@ && \
186
187
188
	$(GLIB_GENMARSHAL) $< --body --prefix=panel_marshal >> $@

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

panel-typebuiltins.h: @REBUILD@ $(panel_enum_headers)
205
	$(AM_V_GEN)glib-mkenums \
206
			--fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \
207
208
209
210
211
			--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@ --- */" \
212
			--eprod "#define PANEL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
213
			--eprod "GType @enum_name@_get_type (void);\n" \
214
215
216
217
218
219
220
		$(panel_enum_headers) > $@

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

222
223
224
225
226
227
228
229
230
231
232
233
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
234
entriesdir       = $(GCONF_SCHEMA_FILE_DIR)
235
entries_DATA     = panel-default-setup.entries
236

237
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
238
schemas_in_files =				\
239
240
241
	panel-global.schemas.in 		\
	panel-general.schemas.in		\
	panel-toplevel.schemas.in		\
242
	panel-object.schemas.in
243
schemas_DATA     = panel-compatibility.schemas $(schemas_in_files:.schemas.in=.schemas)
244
245
246

@INTLTOOL_SCHEMAS_RULE@

247
if GCONF_SCHEMAS_INSTALL
248
install-data-local:
Mark McLoughlin's avatar
Mark McLoughlin committed
249
	if test -z "$(DESTDIR)" ; then \
250
251
		for p in $(schemas_DATA) ; do \
			GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/gnome-panel/$$p ; \
252
		done ; \
Vincent Untz's avatar
Vincent Untz committed
253
254
		$(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
255
	fi
256
257
258
259
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
260
endif
Mark McLoughlin's avatar
Mark McLoughlin committed
261

262
263
264
265
266
267
268
269
270
271
272
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

273
274
CLEANFILES = \
	$(BUILT_SOURCES) \
Mark McLoughlin's avatar
Mark McLoughlin committed
275
	$(schemas_in_files:.schemas.in=.schemas) \
276
	$(sys_DATA) \
277
278
	$(desktop_DATA) \
	gnome-panel-add
279
280
281

dist-hook:
	cd $(distdir) ; rm -f $(CLEANFILES)
282
283

-include $(top_srcdir)/git.mk