diff options
author | Brent Hull <[email protected]> | 2012-10-21 13:53:11 -0400 |
---|---|---|
committer | Brent Hull <[email protected]> | 2012-10-21 13:53:11 -0400 |
commit | 907ea326ca56c3cb89bb5dbb96bcba780538c953 (patch) | |
tree | e7baa568e5443bc2e2bb92f6fe3f91b5eae96694 /applets/brightness/Makefile.am | |
parent | 40f8224e3871eb98bce2df2c3909a810f5e0b959 (diff) | |
download | mate-power-manager-907ea326ca56c3cb89bb5dbb96bcba780538c953.tar.bz2 mate-power-manager-907ea326ca56c3cb89bb5dbb96bcba780538c953.tar.xz |
Port brightness applet to dbus based on gnome patch by carlosgc
Diffstat (limited to 'applets/brightness/Makefile.am')
-rw-r--r-- | applets/brightness/Makefile.am | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/applets/brightness/Makefile.am b/applets/brightness/Makefile.am index c0a6cb6..781a6b0 100644 --- a/applets/brightness/Makefile.am +++ b/applets/brightness/Makefile.am @@ -14,6 +14,7 @@ INCLUDES = \ -DLIBDIR=\""$(libdir)"\" \ -DVERSION="\"$(VERSION)\"" \ -DGPM_DATA=\"$(pkgdatadir)\" \ + -DBRIGHTNESS_MENU_UI_DIR=\""$(uidir)"\" \ -DEGG_LOG_FILE=\""~/mate-power-manager.log"\" \ -DEGG_VERBOSE="\"GPM_VERBOSE\"" \ -DEGG_LOGGING="\"GPM_LOGGING\"" \ @@ -37,19 +38,32 @@ mate_brightness_applet_LDADD = \ $(MATE_LIBS) \ $(PANEL_LIBS) -serverdir = $(libdir)/matecomponent/servers -server_in_files = MATE_BrightnessApplet.server.in -server_DATA = $(server_in_files:.server.in=.server) -$(server_in_files): $(server_in_files:.server.in=.server.in.in) - sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" -e "s|\@VERSION\@|$(VERSION)|" $< > $@ +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) -@INTLTOOL_SERVER_RULE@ +$(applet_in_files): $(applet_in_files).in Makefile + $(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) + +org.mate.panel.applet.BrightnessAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ uidir = $(datadir)/mate-2.0/ui -ui_DATA = MATE_BrightnessApplet.xml +ui_DATA = brightness-applet-menu.xml -EXTRA_DIST = MATE_BrightnessApplet.server.in.in $(ui_DATA) +EXTRA_DIST = org.mate.BrightnessApplet.mate-panel-applet.in.in $(ui_DATA) $(service_in_files) DISTCLEANFILES = \ - $(server_DATA) $(server_DATA).in + $(applet_DATA) $(applet_DATA).in $(service_DATA) |