@@ -13,19 +13,14 @@ AM_CPPFLAGS = \
1313 -I$(top_builddir ) /mate-panel \
1414 -I$(top_builddir ) /mate-panel/libpanel-util \
1515 -DMATELOCALEDIR=\""$(prefix ) /$(DATADIRNAME ) /locale"\" \
16- -DBUILDERDIR=\""$(uidir ) "\" \
1716 -DPANELDATADIR=\""$(datadir ) /mate-panel"\" \
18- -DDATADIR=\""$(datadir ) "\"
19- -DICONDIR=\""$(datadir)/mate-panel/pixmaps"\" \
17+ -DDATADIR=\""$(datadir ) "\" \
2018 $(DISABLE_DEPRECATED_CFLAGS )
2119
2220AM_CFLAGS = $(WARN_CFLAGS )
2321
2422panel_sources = \
25- panel-typebuiltins.c \
26- panel-typebuiltins.h \
27- panel-marshal.c \
28- panel-marshal.h \
23+ $(mate_panel_BUILT_SOURCES ) \
2924 main.c \
3025 panel-widget.c \
3126 button-widget.c \
@@ -159,10 +154,10 @@ mate_desktop_item_edit_LDADD = \
159154 -lX11
160155
161156mate_panel_test_applets_SOURCES = \
157+ $(panel_test_applets_BUILT_SOURCES ) \
162158 panel-modules.c \
163159 panel-applet-info.c \
164160 panel-applets-manager.c \
165- panel-marshal.c \
166161 panel-test-applets.c
167162
168163mate_panel_test_applets_CPPFLAGS = \
@@ -218,17 +213,41 @@ panel-typebuiltins.h: @REBUILD@ $(panel_enum_headers)
218213 --eprod " GType @enum_name@_get_type (void);\n" \
219214 $(panel_enum_headers ) > $@
220215
221- BUILT_SOURCES = \
216+ mate_panel_BUILT_SOURCES = \
222217 panel-typebuiltins.c \
223218 panel-typebuiltins.h \
219+ panel-resources.c \
220+ panel-resources.h \
224221 panel-marshal.c \
225222 panel-marshal.h
226223
227- uidir = $(datadir ) /mate-panel/ui
228- ui_DATA = \
224+ panel_test_applets_BUILT_SOURCES = \
225+ panel-test-applets-resources.c \
226+ panel-test-applets-resources.h \
227+ panel-marshal.c \
228+ panel-marshal.h
229+
230+ BUILT_SOURCES = \
231+ $(mate_panel_BUILT_SOURCES ) \
232+ $(panel_test_applets_BUILT_SOURCES )
233+
234+ ui_FILES = \
229235 panel-properties-dialog.ui \
230- panel-run-dialog.ui \
231- panel-test-applets.ui
236+ panel-run-dialog.ui
237+
238+ panel-resources.c : panel.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES ) --sourcedir=$(srcdir ) --generate-dependencies $(srcdir ) /panel.gresource.xml)
239+ $(AM_V_GEN )$(GLIB_COMPILE_RESOURCES ) --target=$@ --sourcedir=$(srcdir ) --generate --c-name panel $<
240+
241+ panel-resources.h : panel.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES ) --sourcedir=$(srcdir ) --generate-dependencies $(srcdir ) /panel.gresource.xml)
242+ $(AM_V_GEN )$(GLIB_COMPILE_RESOURCES ) --target=$@ --sourcedir=$(srcdir ) --generate --c-name panel $<
243+
244+ uitest_FILES = panel-test-applets.ui
245+
246+ panel-test-applets-resources.c : panel-test-applets.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES ) --sourcedir=$(srcdir ) --generate-dependencies $(srcdir ) /panel-test-applets.gresource.xml)
247+ $(AM_V_GEN )$(GLIB_COMPILE_RESOURCES ) --target=$@ --sourcedir=$(srcdir ) --generate --c-name panel $<
248+
249+ panel-test-applets-resources.h : panel-test-applets.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES ) --sourcedir=$(srcdir ) --generate-dependencies $(srcdir ) /panel-test-applets.gresource.xml)
250+ $(AM_V_GEN )$(GLIB_COMPILE_RESOURCES ) --target=$@ --sourcedir=$(srcdir ) --generate --c-name panel $<
232251
233252desktopdir = $(datadir ) /applications
234253desktop_in_files = mate-panel.desktop.in
@@ -237,7 +256,10 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
237256@INTLTOOL_DESKTOP_RULE@
238257
239258EXTRA_DIST = \
240- $(ui_DATA ) \
259+ $(ui_FILES ) \
260+ panel.gresource.xml \
261+ $(uitest_FILES ) \
262+ panel-test-applets.gresource.xml \
241263 panel-marshal.list \
242264 $(entries_DATA ) \
243265 $(desktop_in_files )
0 commit comments