summaryrefslogtreecommitdiff
path: root/src/capplet/Makefile.am
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-10-10 22:06:59 +0200
committerraveit65 <[email protected]>2019-10-20 23:42:09 +0200
commit9f5e0db85fe80f97c38576922c2748eb94b46a4b (patch)
treedcf40e987e0d5d34a7e8814b941ab1d01428919c /src/capplet/Makefile.am
parenta4054692c35b5e1ed584177de94baa1aca80886d (diff)
downloadmate-notification-daemon-9f5e0db85fe80f97c38576922c2748eb94b46a4b.tar.bz2
mate-notification-daemon-9f5e0db85fe80f97c38576922c2748eb94b46a4b.tar.xz
Use gresource for mate-notification-properties.ui
Diffstat (limited to 'src/capplet/Makefile.am')
-rw-r--r--src/capplet/Makefile.am16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/capplet/Makefile.am b/src/capplet/Makefile.am
index 12110b1..26a188a 100644
--- a/src/capplet/Makefile.am
+++ b/src/capplet/Makefile.am
@@ -2,11 +2,14 @@ bin_PROGRAMS = mate-notification-properties
@INTLTOOL_DESKTOP_RULE@
+BUILT_SOURCES = mate-notification-properties-resources.h mate-notification-properties-resources.c
+
mate_notification_properties_LDADD = $(NOTIFICATION_CAPPLET_LIBS)
-mate_notification_properties_SOURCES = mate-notification-properties.c
+mate_notification_properties_SOURCES = $(BUILT_SOURCES) mate-notification-properties.c
mate_notification_properties_CFLAGS = $(WARN_CFLAGS)
-uidir = $(datadir)/mate-notification-daemon
-ui_DATA = mate-notification-properties.ui
+
+mate-notification-properties-resources.h mate-notification-properties-resources.c: org.mate.notifications.properties.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/org.mate.notifications.properties.gresource.xml)
+ $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate --c-name notification_properties $<
desktopdir = $(datadir)/applications
desktop_in_files = mate-notification-properties.desktop.in
@@ -19,10 +22,9 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/daemon \
$(NOTIFICATION_CAPPLET_CFLAGS) \
-DENGINES_DIR=\"$(libdir)/mate-notification-daemon/engines\" \
- -DNOTIFICATION_LOCALEDIR=\"$(datadir)/locale\" \
- -DNOTIFICATION_UIDIR=\"$(datadir)/mate-notification-daemon\"
+ -DNOTIFICATION_LOCALEDIR=\"$(datadir)/locale\"
-CLEANFILES = $(desktop_DATA)
-EXTRA_DIST = $(ui_DATA) $(pixmap_DATA) $(desktop_in_files) $(man_MANS)
+CLEANFILES = $(desktop_DATA) $(BUILT_SOURCES)
+EXTRA_DIST = mate-notification-properties.ui $(pixmap_DATA) $(desktop_in_files) $(man_MANS) org.mate.notifications.properties.gresource.xml
-include $(top_srcdir)/git.mk