diff options
Diffstat (limited to 'mateweather/Makefile.am')
-rw-r--r-- | mateweather/Makefile.am | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/mateweather/Makefile.am b/mateweather/Makefile.am index dd80e547..07e7884c 100644 --- a/mateweather/Makefile.am +++ b/mateweather/Makefile.am @@ -5,7 +5,7 @@ SUBDIRS = docs AM_CPPFLAGS = \ -I$(srcdir) \ -I$(top_srcdir) \ - -DMATEWEATHER_MENU_UI_DIR=\""$(uidir)"\" \ + -DWEATHER_RESOURCE_PATH=\""/org/mate/mate-applets/mateweather/"\" \ $(MATE_APPLETS4_CFLAGS) \ $(LIBNOTIFY_CFLAGS) \ $(LIBMATEWEATHER_CFLAGS) \ @@ -13,6 +13,8 @@ AM_CPPFLAGS = \ libexec_PROGRAMS = mateweather-applet +BUILT_SOURCES = mateweather-resources.c mateweather-resources.h +nodist_mateweather_applet_SOURCES = $(BUILT_SOURCES) mateweather_applet_SOURCES = \ mateweather.h \ main.c \ @@ -27,8 +29,11 @@ mateweather_applet_LDADD = \ $(MATE_LIBS2_LIBS) \ $(LIBMATEWEATHER_LIBS) -uidir = $(datadir)/mate/ui -ui_DATA = mateweather-applet-menu.xml +mateweather-resources.c: mateweather-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/mateweather-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name mateweather $< + +mateweather-resources.h: mateweather-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/mateweather-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name mateweather $< appletdir = $(datadir)/mate-panel/applets applet_in_files = org.mate.applets.MateWeatherApplet.mate-panel-applet.desktop.in @@ -52,11 +57,18 @@ org.mate.panel.applet.MateWeatherAppletFactory.service: $(service_in_files) -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ $< > $@ -CLEANFILES = $(applet_DATA) $(applet_in_files) $(service_DATA) +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) \ + $(BUILT_SOURCES) -EXTRA_DIST = \ - $(applet_in_files).in \ - $(service_in_files) \ +EXTRA_DIST = \ + mateweather-applet-menu.xml \ + mateweather-dialog.ui \ + mateweather-resources.gresource.xml \ + $(applet_in_files).in \ + $(service_in_files) \ $(ui_DATA) -include $(top_srcdir)/git.mk |