summaryrefslogtreecommitdiff
path: root/accessx-status/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'accessx-status/Makefile.am')
-rw-r--r--accessx-status/Makefile.am28
1 files changed, 22 insertions, 6 deletions
diff --git a/accessx-status/Makefile.am b/accessx-status/Makefile.am
index f71ab438..013ff92b 100644
--- a/accessx-status/Makefile.am
+++ b/accessx-status/Makefile.am
@@ -1,3 +1,5 @@
+NULL =
+
SUBDIRS = docs pixmaps
AM_CPPFLAGS = \
@@ -5,10 +7,13 @@ AM_CPPFLAGS = \
$(MATE_APPLETS4_CFLAGS) \
$(GIO_CFLAGS) \
-DACCESSX_PIXMAPS_DIR=\""$(datadir)/pixmaps/mate-accessx-status-applet"\" \
- -DACCESSX_MENU_UI_DIR=\""$(uidir)"\"
+ -DACCESSX_RESOURCE_PATH=\""/org/mate/mate-applets/accessx-status/"\" \
+ $(NULL)
libexec_PROGRAMS = accessx-status-applet
+BUILT_SOURCES = accessx-status-resources.c accessx-status-resources.h
+nodist_accessx_status_applet_SOURCES = $(BUILT_SOURCES)
accessx_status_applet_SOURCES = \
applet.c \
applet.h
@@ -18,6 +23,12 @@ accessx_status_applet_LDADD = \
$(GIO_LIBS) \
$(X_LIBS)
+accessx-status-resources.c: accessx-status-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/accessx-status-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) [email protected] --sourcedir=$(srcdir) --generate --c-name accessx $<
+
+accessx-status-resources.h: accessx-status-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/accessx-status-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) [email protected] --sourcedir=$(srcdir) --generate --c-name accessx $<
+
appletdir = $(datadir)/mate-panel/applets
applet_in_files = org.mate.applets.AccessxStatusApplet.mate-panel-applet.desktop.in
applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
@@ -40,15 +51,20 @@ org.mate.panel.applet.AccessxStatusAppletFactory.service: $(service_in_files)
-e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
-uidir = $(datadir)/mate/ui
-ui_DATA = accessx-status-applet-menu.xml
-
-CLEANFILES = $(applet_DATA) $(applet_in_files) $(service_DATA) $(ACCESSX_STATUS_APPLET_CLEANFILES)
+CLEANFILES = \
+ $(applet_DATA) \
+ $(applet_in_files) \
+ $(service_DATA) \
+ $(ACCESSX_STATUS_APPLET_CLEANFILES) \
+ $(BUILT_SOURCES) \
+ $(NULL)
EXTRA_DIST = \
+ accessx-status-applet-menu.xml \
+ accessx-status-resources.gresource.xml \
$(applet_in_files).in \
$(service_in_files) \
- $(ui_DATA)
+ $(NULL)
-include $(top_srcdir)/git.mk