Makefile.am 7.28 KB
Newer Older
Tom Tromey's avatar
Tom Tromey committed
1
## We require new-style dependency handling.
Raja R Harinath's avatar
Raja R Harinath committed
2
AUTOMAKE_OPTIONS = 1.3
Vincent Untz's avatar
Vincent Untz committed
3
SUBDIRS = libpanel-util
Tom Tromey's avatar
Tom Tromey committed
4

Martin Baulig's avatar
Martin Baulig committed
5
6
NULL =

7
8
9
INCLUDES =							\
	-I.							\
	-I$(srcdir)						\
10
	-I$(top_builddir)/gnome-panel				\
Vincent Untz's avatar
Vincent Untz committed
11
	-I$(top_builddir)/gnome-panel/libpanel-util		\
12
	-DPANEL_DEBUG						\
13
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
14
	-DGLADEDIR=\""$(gladedir)"\"				\
15
	-DICONDIR=\""$(datadir)/gnome-panel/pixmaps"\"		\
16
	-DGMENU_I_KNOW_THIS_IS_UNSTABLE				\
17
18
19
20
21
22
23
24
25
	$(DISABLE_DEPRECATED_CFLAGS)				\
	$(STANDARD_PROPERTIES_CFLAGS)				\
	$(PANEL_CFLAGS)						\
	$(PANELCONFIG_CFLAGS)					\
	$(WARN_CFLAGS)						\
	$(NULL)

# Used by the GNOME_PROGRAM_STANDARD_PROPERTIES macros
STANDARD_PROPERTIES_CFLAGS = 					\
26
27
28
	-DPREFIX=\""$(prefix)"\"				\
	-DSYSCONFDIR=\""$(sysconfdir)"\"			\
	-DLIBDIR=\""$(libdir)"\"				\
29
	-DDATADIR=\""$(datadir)"\"				\
Mark McLoughlin's avatar
Mark McLoughlin committed
30
31
	$(NULL)

32
bin_PROGRAMS = \
33
	gnome-panel 			\
34
	gnome-desktop-item-edit
Mark McLoughlin's avatar
Mark McLoughlin committed
35

36
$(gnome_panel_OBJECTS): $(BUILT_SOURCES)
37

Mark McLoughlin's avatar
Mark McLoughlin committed
38
CORBA_SRCLIST =			\
jacob berkman's avatar
jacob berkman committed
39
40
41
	GNOME_Panel-stubs.c	\
	GNOME_Panel-skels.c	\
	GNOME_Panel-common.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
42
43
	GNOME_Panel.h		\
	$(NULL)
44

jacob berkman's avatar
jacob berkman committed
45
46
$(CORBA_SRCLIST): $(top_srcdir)/idl/GNOME_Panel.idl $(ORBIT_IDL)
	$(ORBIT_IDL) -I $(BONOBO_IDLDIR) -I $(BONOBO_ACT_IDLDIR) $(top_srcdir)/idl/GNOME_Panel.idl
47

48
49
BUILT_SOURCES = \
	$(CORBA_SRCLIST)	\
50
51
	panel-typebuiltins.c	\
	panel-typebuiltins.h	\
52
53
54
	panel-marshal.c		\
	panel-marshal.h

55
panel_sources =			\
56
57
	panel-typebuiltins.c	\
	panel-typebuiltins.h	\
58
59
	panel-marshal.c		\
	panel-marshal.h		\
60
61
	main.c			\
	panel-widget.c  	\
Martin Baulig's avatar
Martin Baulig committed
62
63
	button-widget.c  	\
	xstuff.c		\
64
	panel-session.c		\
65
	panel-compatibility.c   \
66
67
68
	panel.c			\
	applet.c		\
	drawer.c  		\
69
	panel-config-global.c  	\
70
	panel-util.c		\
71
	panel-gconf.c		\
72
	panel-properties-dialog.c \
73
	panel-run-dialog.c	\
74
	menu.c  		\
75
	panel-context-menu.c 	\
76
	launcher.c		\
77
	panel-applet-frame.c	\
jacob berkman's avatar
jacob berkman committed
78
	panel-shell.c		\
79
	panel-background.c	\
80
	panel-background-monitor.c \
81
	panel-stock-icons.c	\
82
	panel-action-button.c	\
83
	panel-menu-bar.c        \
84
	panel-menu-button.c     \
85
	panel-menu-items.c      \
86
	panel-separator.c	\
87
	panel-recent.c		\
88
	panel-action-protocol.c	\
89
	panel-toplevel.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
90
	panel-struts.c		\
91
92
93
94
95
96
	panel-frame.c		\
	panel-xutils.c		\
	panel-multiscreen.c	\
	panel-a11y.c		\
	panel-bindings.c	\
	panel-profile.c         \
Mark McLoughlin's avatar
Mark McLoughlin committed
97
	panel-force-quit.c	\
98
	panel-lockdown.c	\
99
	panel-addto.c		\
100
	panel-ditem-editor.c	\
101
	panel-mount-operation.c	\
102
103
	$(NULL)

104
panel_headers =			\
105
106
	panel-types.h		\
	panel-widget.h		\
107
	panel-globals.h		\
108
109
	button-widget.h		\
	xstuff.h		\
110
	panel-session.h		\
111
	panel-compatibility.h   \
112
	panel.h         	\
113
	applet.h         	\
114
115
	drawer.h  		\
	panel-util.h		\
116
	panel-properties-dialog.h \
Mark McLoughlin's avatar
Mark McLoughlin committed
117
	panel-config-global.h  	\
118
	panel-gconf.h		\
119
	panel-run-dialog.h	\
120
	menu.h  		\
121
	panel-context-menu.h 	\
122
	launcher.h		\
123
	panel-applet-frame.h	\
124
	panel-shell.h		\
125
	panel-background.h	\
126
	panel-background-monitor.h \
127
	panel-stock-icons.h	\
128
	panel-action-button.h	\
129
	panel-menu-bar.h        \
130
	panel-menu-button.h     \
131
	panel-menu-items.h      \
132
	panel-separator.h	\
133
	panel-recent.h		\
134
	panel-action-protocol.h	\
135
	panel-toplevel.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
136
	panel-struts.h		\
137
138
139
140
141
142
143
	panel-frame.h		\
	panel-xutils.h		\
	panel-multiscreen.h	\
	panel-a11y.h		\
	panel-bindings.h	\
	panel-profile.h         \
	panel-enums.h		\
Mark McLoughlin's avatar
Mark McLoughlin committed
144
	panel-force-quit.h	\
145
	panel-lockdown.h	\
146
	panel-addto.h		\
147
	panel-ditem-editor.h	\
148
	panel-icon-names.h	\
149
	panel-mount-operation.h	\
150
151
	$(NULL)

152
153
154
155
gnome_panel_SOURCES =			\
	$(CORBA_SRCLIST)		\
	$(panel_sources)		\
	$(panel_headers)		\
156
157
	$(NULL)

158
gnome_panel_LDADD =		\
Vincent Untz's avatar
Vincent Untz committed
159
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la \
160
161
	$(PANEL_LIBS)		\
	$(X_LIBS)
162

163
gnome_panel_LDFLAGS = -export-dynamic
164

165
166
gnome_desktop_item_edit_SOURCES = \
	gnome-desktop-item-edit.c \
167
168
	panel-ditem-editor.c	  \
	panel-marshal.c		  \
169
	panel-util.c		  \
170
	xstuff.c
171
172
173
174

gnome_desktop_item_edit_LDFLAGS = -export-dynamic

gnome_desktop_item_edit_LDADD = 	\
Vincent Untz's avatar
Vincent Untz committed
175
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la \
176
177
	$(PANEL_LIBS)			\
	$(X_LIBS)
178

179
gladedir = $(datadir)/gnome-panel/glade
Mark McLoughlin's avatar
Mark McLoughlin committed
180
glade_DATA =					\
181
182
	panel-properties-dialog.glade		\
	panel-run-dialog.glade
183

184
185
186
187
188
EXTRA_DIST =					\
	GNOME_Panel.server.in			\
	$(glade_DATA)				\
	nothing.cP				\
	nothing.h				\
189
	$(schemas_in_files)			\
190
	panel-compatibility.schemas		\
jacob berkman's avatar
jacob berkman committed
191
	$(ui_DATA)				\
192
	panel-marshal.list			\
193
	gnome-panelrc				\
194
195
	$(entries_DATA)				\
	$(desktop_DATA)
196

197
@INTLTOOL_DESKTOP_RULE@
198

199
panel_enum_headers =					\
200
	$(top_srcdir)/gnome-panel/panel-enums.h		\
201
	$(top_srcdir)/gnome-panel/panel-types.h		\
Frédéric Crozat's avatar
Frédéric Crozat committed
202
	GNOME_Panel.h
203
204
205
206
207
208
209
210
211
212

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

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

panel-typebuiltins.c: @REBUILD@ $(panel_enum_headers)
	glib-mkenums    --fhead "#include <glib-object.h>\n" \
213
214
			--fhead "#include \"panel-typebuiltins.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
Mark McLoughlin's avatar
remove.    
Mark McLoughlin committed
215
			--fprod "\n#include \"@filename@\"\n" \
216
			--vhead "static const GEnumValue _@enum_name@_values[] = {" \
217
218
219
220
221
			--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" \
222
			--vtail "    type = g_enum_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
223
			--vtail "  return type;\n}\n\n" \
224
225
226
227
		$(panel_enum_headers) > $@

panel-typebuiltins.h: @REBUILD@ $(panel_enum_headers)
	glib-mkenums    --fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \
228
229
230
231
232
			--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@ --- */" \
233
			--eprod "#define PANEL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
234
			--eprod "GType @enum_name@_get_type (void);\n" \
235
		$(panel_enum_headers) >  $@
236

237
238
239
uidir   = $(datadir)/gnome-2.0/ui
ui_DATA = GNOME_Panel_Popup.xml

240
241
242
243
serverdir       = $(libdir)/bonobo/servers
server_in_files = GNOME_Panel.server.in
server_DATA     = $(server_in_files:.server.in=.server)

244
245
246
rcdir = $(datadir)
rc_DATA = gnome-panelrc

247
248
@INTLTOOL_SERVER_RULE@

Vincent Untz's avatar
Vincent Untz committed
249
entriesdir       = $(GCONF_SCHEMA_FILE_DIR)
250
entries_DATA     = panel-default-setup.entries
251

252
schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
253
schemas_in_files =				\
254
255
256
257
	panel-global.schemas.in 		\
	panel-general.schemas.in		\
	panel-toplevel.schemas.in		\
	panel-object.schemas.in			\
258
	$(NULL)
259
schemas_DATA     = panel-compatibility.schemas $(schemas_in_files:.schemas.in=.schemas)
260

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

265
266
@INTLTOOL_SCHEMAS_RULE@

267
if GCONF_SCHEMAS_INSTALL
268
install-data-local:
Mark McLoughlin's avatar
Mark McLoughlin committed
269
	if test -z "$(DESTDIR)" ; then \
270
271
		for p in $(schemas_DATA) ; do \
			GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/gnome-panel/$$p ; \
272
		done ; \
Vincent Untz's avatar
Vincent Untz committed
273
274
		$(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
275
	fi
276
277
278
else
install-data-local:
endif
Mark McLoughlin's avatar
Mark McLoughlin committed
279

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

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