summaryrefslogtreecommitdiff
path: root/mate-volume-control/Makefile.am
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-10-28 17:28:03 +0800
committerraveit65 <[email protected]>2019-11-09 15:00:24 +0100
commitc16dd6cc8260871d510b1d2ca27c5f5bbc3cb87f (patch)
tree1c81348276dcb5d1427ab40fa1fa15ee7a4c8ceb /mate-volume-control/Makefile.am
parent5ee13d9ee7b843608e0f126c69f63750bc607d61 (diff)
downloadmate-media-c16dd6cc8260871d510b1d2ca27c5f5bbc3cb87f.tar.bz2
mate-media-c16dd6cc8260871d510b1d2ca27c5f5bbc3cb87f.tar.xz
migrate from intltools to gettext
Diffstat (limited to 'mate-volume-control/Makefile.am')
-rw-r--r--mate-volume-control/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/mate-volume-control/Makefile.am b/mate-volume-control/Makefile.am
index 3812a52..68913ac 100644
--- a/mate-volume-control/Makefile.am
+++ b/mate-volume-control/Makefile.am
@@ -28,14 +28,16 @@ if ENABLE_PANELAPPLET
APPLET_LOCATION = $(libexecdir)/mate-volume-control-applet
appletsdir = $(datadir)/mate-panel/applets
-applets_in_files = org.mate.applets.GvcApplet.mate-panel-applet.in
-applets_DATA = $(applets_in_files:.mate-panel-applet.in=.mate-panel-applet)
+applets_in_files = org.mate.applets.GvcApplet.mate-panel-applet.desktop.in
+applets_DATA = $(applets_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
$(applets_in_files): $(applets_in_files).in Makefile
$(AM_V_GEN)sed \
-e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
$< > $@
-%.mate-panel-applet: %.mate-panel-applet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
+
+$(applets_DATA): $(applets_in_files) Makefile
+ $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
servicedir = $(datadir)/dbus-1/services
service_in_files = org.mate.panel.applet.GvcAppletFactory.service.in
@@ -125,6 +127,7 @@ BUILT_SOURCES = \
$(NULL)
CLEANFILES = \
+ $(applets_in_files) \
$(BUILT_SOURCES) \
$(NULL)