Makefile.am 7.43 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
	panel.c			\
	applet.c		\
35
36
	drawer.c		\
	panel-config-global.c	\
37
	panel-util.c		\
38
	panel-gconf.c		\
39
	panel-properties-dialog.c	\
40
	panel-run-dialog.c	\
41
42
	menu.c			\
	panel-context-menu.c	\
43
	launcher.c		\
44
	panel-applet-frame.c	\
45
	panel-applets-manager.c	\
jacob berkman's avatar
jacob berkman committed
46
	panel-shell.c		\
47
	panel-background.c	\
48
	panel-background-monitor.c	\
49
	panel-stock-icons.c	\
50
	panel-action-button.c	\
51
52
53
	panel-menu-bar.c	\
	panel-menu-button.c	\
	panel-menu-items.c	\
54
	panel-separator.c	\
55
	panel-recent.c		\
56
	panel-action-protocol.c	\
57
	panel-toplevel.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
58
	panel-struts.c		\
59
60
61
62
63
	panel-frame.c		\
	panel-xutils.c		\
	panel-multiscreen.c	\
	panel-a11y.c		\
	panel-bindings.c	\
64
	panel-profile.c		\
Mark McLoughlin's avatar
Mark McLoughlin committed
65
	panel-force-quit.c	\
66
	panel-lockdown.c	\
67
	panel-addto.c		\
68
	panel-ditem-editor.c	\
69
	panel-modules.c		\
70
	panel-applet-info.c
71

72
panel_headers =			\
73
74
	panel-types.h		\
	panel-widget.h		\
75
	panel-globals.h		\
76
77
	button-widget.h		\
	xstuff.h		\
78
	panel-session.h		\
79
80
81
82
	panel-compatibility.h	\
	panel.h			\
	applet.h		\
	drawer.h		\
83
	panel-util.h		\
84
85
	panel-properties-dialog.h	\
	panel-config-global.h	\
86
	panel-gconf.h		\
87
	panel-run-dialog.h	\
88
89
	menu.h			\
	panel-context-menu.h	\
90
	launcher.h		\
91
	panel-applet-frame.h	\
92
	panel-applets-manager.h	\
93
	panel-shell.h		\
94
	panel-background.h	\
95
	panel-background-monitor.h	\
96
	panel-stock-icons.h	\
97
	panel-action-button.h	\
98
99
100
	panel-menu-bar.h	\
	panel-menu-button.h	\
	panel-menu-items.h	\
101
	panel-separator.h	\
102
	panel-recent.h		\
103
	panel-action-protocol.h	\
104
	panel-toplevel.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
105
	panel-struts.h		\
106
107
108
109
110
	panel-frame.h		\
	panel-xutils.h		\
	panel-multiscreen.h	\
	panel-a11y.h		\
	panel-bindings.h	\
111
	panel-profile.h		\
112
	panel-enums.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-modules.h		\
119
	panel-applet-info.h
120

121
122
gnome_panel_SOURCES =			\
	$(panel_sources)		\
123
124
125
126
127
128
129
	$(panel_headers)

gnome_panel_CPPFLAGS = 				\
	$(AM_CPPFLAGS)				\
	$(XRANDR_CFLAGS)			\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
	-DGMENU_I_KNOW_THIS_IS_UNSTABLE
130

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

139
140
gnome_panel_LDFLAGS = -export-dynamic

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

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

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

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

165
166
167
168
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)
169

170
171
panel_test_applets_LDFLAGS = -export-dynamic

172
173
174
175
176
177
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 $@
178

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

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

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

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

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

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

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

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

@INTLTOOL_SCHEMAS_RULE@

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

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

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

dist-hook:
	cd $(distdir) ; rm -f $(CLEANFILES)
284
285

-include $(top_srcdir)/git.mk