diff options
author | Wu Xiaotian <[email protected]> | 2019-10-30 11:50:07 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-11-12 11:18:15 +0100 |
commit | 4b6d373147649c13d6ea625c31f15a34ced324e3 (patch) | |
tree | 0215b3594255d27ee81f1fd996ab22564b95b935 /applets/brightness/Makefile.am | |
parent | a9ff56c6de34f8d3db48f3405c5ee671dc281194 (diff) | |
download | mate-power-manager-4b6d373147649c13d6ea625c31f15a34ced324e3.tar.bz2 mate-power-manager-4b6d373147649c13d6ea625c31f15a34ced324e3.tar.xz |
migrate from intltool to gettext
Diffstat (limited to 'applets/brightness/Makefile.am')
-rw-r--r-- | applets/brightness/Makefile.am | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/applets/brightness/Makefile.am b/applets/brightness/Makefile.am index bcc28d2..4560164 100644 --- a/applets/brightness/Makefile.am +++ b/applets/brightness/Makefile.am @@ -39,17 +39,18 @@ mate_brightness_applet_LDADD = \ $(PANEL_LIBS) appletdir = $(datadir)/mate-panel/applets -applet_in_files = org.mate.BrightnessApplet.mate-panel-applet.in -applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) +applet_in_files = org.mate.BrightnessApplet.mate-panel-applet.desktop.in +applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) -$(applet_in_files): $(applet_in_files).in Makefile - $(AM_V_GEN)sed \ +$(applet_DATA): $(applet_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ + +$(applet_in_files): $(applet_in_files).in + $(AM_V_GEN) sed \ -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \ $< > $@ -%.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 - servicedir = $(datadir)/dbus-1/services service_in_files = org.mate.panel.applet.BrightnessAppletFactory.service.in service_DATA = $(service_in_files:.service.in=.service) @@ -62,7 +63,7 @@ org.mate.panel.applet.BrightnessAppletFactory.service: $(service_in_files) uidir = $(datadir)/mate-power-manager/ui ui_DATA = brightness-applet-menu.xml -EXTRA_DIST = org.mate.BrightnessApplet.mate-panel-applet.in.in $(ui_DATA) $(service_in_files) +EXTRA_DIST = $(applet_in_files).in $(ui_DATA) $(service_in_files) DISTCLEANFILES = \ $(applet_DATA) $(applet_DATA).in $(service_DATA) |