diff options
author | rbuj <[email protected]> | 2020-07-18 21:37:40 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-30 18:37:40 +0200 |
commit | ca4a3b697836a99590c1e81a0b263588609b647c (patch) | |
tree | d4f84e64736689da2e57594d96363a5a9d6edb40 /charpick/Makefile.am | |
parent | fd1a917a0ca74063ed52f9798c9491556b08c8f4 (diff) | |
download | mate-applets-ca4a3b697836a99590c1e81a0b263588609b647c.tar.bz2 mate-applets-ca4a3b697836a99590c1e81a0b263588609b647c.tar.xz |
charpick: Load menu from resources
Diffstat (limited to 'charpick/Makefile.am')
-rw-r--r-- | charpick/Makefile.am | 64 |
1 files changed, 42 insertions, 22 deletions
diff --git a/charpick/Makefile.am b/charpick/Makefile.am index 5397d2d0..1c505e20 100644 --- a/charpick/Makefile.am +++ b/charpick/Makefile.am @@ -1,22 +1,36 @@ +NULL = + SUBDIRS = help -AM_CPPFLAGS = \ - -I. \ - -I$(srcdir) \ - -DCHARPICK_MENU_UI_DIR=\""$(uidir)"\" \ - ${WARN_CFLAGS} \ - $(MATE_APPLETS4_CFLAGS) \ - $(GUCHARMAP_CFLAGS) +AM_CPPFLAGS = \ + -I. \ + -I$(srcdir) \ + -DCHARPICK_RESOURCE_PATH=\""/org/mate/mate-applets/charpick/"\" \ + ${WARN_CFLAGS} \ + $(MATE_APPLETS4_CFLAGS) \ + $(GUCHARMAP_CFLAGS) \ + $(NULL) libexec_PROGRAMS = mate-charpick-applet -mate_charpick_applet_SOURCES = charpick.c \ - charpick.h \ - properties.c +BUILT_SOURCES = charpick-resources.c charpick-resources.h +nodist_mate_charpick_applet_SOURCES = $(BUILT_SOURCES) +mate_charpick_applet_SOURCES = \ + charpick.c \ + charpick.h \ + properties.c \ + $(NULL) + +mate_charpick_applet_LDADD = \ + $(MATE_APPLETS4_LIBS) \ + $(GUCHARMAP_LIBS) \ + $(NULL) -mate_charpick_applet_LDADD = \ - $(MATE_APPLETS4_LIBS) \ - $(GUCHARMAP_LIBS) +charpick-resources.c: charpick-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/charpick-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name charpick $< + +charpick-resources.h: charpick-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/charpick-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name charpick $< appletdir = $(datadir)/mate-panel/applets applet_in_files = org.mate.applets.CharpickerApplet.mate-panel-applet.desktop.in @@ -44,15 +58,21 @@ charpick_gschema_in_files = org.mate.panel.applet.charpick.gschema.xml.in gsettings_SCHEMAS = $(charpick_gschema_in_files:.xml.in=.xml) @GSETTINGS_RULES@ -uidir = $(datadir)/mate/ui -ui_DATA = charpick-applet-menu.xml - -CLEANFILES = $(applet_DATA) $(applet_in_files) $(service_DATA) $(gsettings_SCHEMAS) *.gschema.valid +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + $(BUILT_SOURCES) \ + *.gschema.valid \ + $(NULL) -EXTRA_DIST = \ - $(applet_in_files).in \ - $(service_in_files) \ - $(ui_DATA) \ - $(charpick_gschema_in_files) +EXTRA_DIST = \ + $(applet_in_files).in \ + $(service_in_files) \ + $(charpick_gschema_in_files) \ + charpick-applet-menu.xml \ + charpick-resources.gresource.xml \ + $(NULL) -include $(top_srcdir)/git.mk |