summaryrefslogtreecommitdiff
path: root/sensors-applet/Makefile.am
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-01-31 12:11:25 +0100
committermbkma <[email protected]>2026-01-31 12:11:25 +0100
commitbb4fa0ea945f9dd4d0bff0182c381c2f14f78ae3 (patch)
tree523c91356c59557d0bcfa0a878f4e5cadd0c4ab2 /sensors-applet/Makefile.am
parentd433bbd9aeb7ae3377e59c70f6608c3e29f9ebbc (diff)
downloadmate-applets-integrate-all-applets.tar.bz2
mate-applets-integrate-all-applets.tar.xz
merge mate-indicator-applet and sensors-applet into mate-appletsintegrate-all-applets
Diffstat (limited to 'sensors-applet/Makefile.am')
-rw-r--r--sensors-applet/Makefile.am56
1 files changed, 56 insertions, 0 deletions
diff --git a/sensors-applet/Makefile.am b/sensors-applet/Makefile.am
new file mode 100644
index 00000000..9be92d3a
--- /dev/null
+++ b/sensors-applet/Makefile.am
@@ -0,0 +1,56 @@
+SUBDIRS = sensors-applet lib plugins pixmaps help
+
+if ENABLE_IN_PROCESS
+APPLET_LOCATION = $(libdir)/mate-sensors-applet/libmate-sensors-applet.so
+else
+APPLET_LOCATION = $(libexecdir)/mate-sensors-applet
+
+servicedir = $(datadir)/dbus-1/services
+service_in_files = org.mate.panel.applet.SensorsAppletFactory.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+org.mate.panel.applet.SensorsAppletFactory.service: $(service_in_files)
+ $(AM_V_GEN)sed \
+ -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
+ $< > $@
+
+endif
+
+appletdir = $(datadir)/mate-panel/applets
+applet_in_files = org.mate.applets.SensorsApplet.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 \
+ -e "s|\@APPLET_LOCATION\@|$(APPLET_LOCATION)|" \
+ -e "s|\@APPLET_IN_PROCESS\@|$(APPLET_IN_PROCESS)|" \
+ -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
+ $< > $@
+
+$(applet_DATA): $(applet_in_files) Makefile
+ $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
+
+uidir = $(datadir)/mate-sensors-applet/ui
+ui_DATA = SensorsApplet.xml
+
+gsettingsschema_in_files = \
+ org.mate.sensors-applet.gschema.xml.in \
+ org.mate.sensors-applet.sensor.gschema.xml.in
+
+gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
+@GSETTINGS_RULES@
+
+CLEANFILES = $(applet_DATA) \
+ $(applet_in_files) \
+ $(service_DATA) \
+ $(gsettings_SCHEMAS) \
+ *.gschema.valid
+
+EXTRA_DIST = $(ui_DATA) \
+ $(applet_in_files).in \
+ $(service_in_files) \
+ $(gsettingsschema_in_files)
+
+DISTCLEANFILES =
+
+-include $(top_srcdir)/git.mk