diff options
author | rbuj <[email protected]> | 2020-12-13 20:29:21 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-14 10:53:50 +0100 |
commit | 7363693872c492c084e52de797126c7f887a16a1 (patch) | |
tree | 64913a4b59dc039efa6e86bb0ed04a8c5a053665 /multiload/src/Makefile.am | |
parent | a28479d294dcef50fa5f980f5c359382820997ce (diff) | |
download | mate-applets-7363693872c492c084e52de797126c7f887a16a1.tar.bz2 mate-applets-7363693872c492c084e52de797126c7f887a16a1.tar.xz |
multiload: load menu from resource bundle
Diffstat (limited to 'multiload/src/Makefile.am')
-rw-r--r-- | multiload/src/Makefile.am | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/multiload/src/Makefile.am b/multiload/src/Makefile.am index ab0ab6fd..670f1c50 100644 --- a/multiload/src/Makefile.am +++ b/multiload/src/Makefile.am @@ -1,6 +1,8 @@ +NULL = + AM_CPPFLAGS = \ -I$(srcdir) \ - -DMULTILOAD_MENU_UI_DIR=\""$(datadir)/mate/ui/"\" \ + -DMULTILOAD_RESOURCE_PATH=\""/org/mate/mate-applets/multiload/"\" \ $(MATE_APPLETS4_CFLAGS) \ $(GTOP_APPLETS_CFLAGS) \ $(GIO_CFLAGS) \ @@ -8,6 +10,8 @@ AM_CPPFLAGS = \ libexec_PROGRAMS = mate-multiload-applet +BUILT_SOURCES = multiload-resources.c multiload-resources.h +nodist_mate_multiload_applet_SOURCES = $(BUILT_SOURCES) mate_multiload_applet_SOURCES = \ global.h \ linux-proc.h \ @@ -26,4 +30,14 @@ mate_multiload_applet_LDADD = \ $(GIO_LIBS) \ -lm +multiload-resources.c: $(srcdir)/../data/multiload-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/multiload-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name multiload $< + +multiload-resources.h: $(srcdir)/../data/multiload-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/multiload-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name multiload $< + +CLEANFILES = \ + $(BUILT_SOURCES) \ + $(NULL) + -include $(top_srcdir)/git.mk |