diff options
author | rbuj <[email protected]> | 2022-08-07 09:28:01 +0200 |
---|---|---|
committer | mouse <[email protected]> | 2022-08-15 10:03:18 +0800 |
commit | d785377044f6bafd927722e1c03175e854870b75 (patch) | |
tree | 9aef43012e527ffbaa4158ea001f497ff81bba06 /cpufreq | |
parent | 927c136fab9280d095d837b93f7c34da666b550c (diff) | |
download | mate-applets-d785377044f6bafd927722e1c03175e854870b75.tar.bz2 mate-applets-d785377044f6bafd927722e1c03175e854870b75.tar.xz |
cpufreq: Add data dir
Diffstat (limited to 'cpufreq')
-rw-r--r-- | cpufreq/Makefile.am | 47 | ||||
-rw-r--r-- | cpufreq/data/Makefile.am | 46 | ||||
-rw-r--r-- | cpufreq/data/cpufreq-applet-menu.xml (renamed from cpufreq/cpufreq-applet-menu.xml) | 0 | ||||
-rw-r--r-- | cpufreq/data/cpufreq-preferences.ui (renamed from cpufreq/cpufreq-preferences.ui) | 0 | ||||
-rw-r--r-- | cpufreq/data/cpufreq-resources.gresource.xml (renamed from cpufreq/cpufreq-resources.gresource.xml) | 0 | ||||
-rw-r--r-- | cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in (renamed from cpufreq/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in) | 0 | ||||
-rw-r--r-- | cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in (renamed from cpufreq/org.mate.panel.applet.CPUFreqAppletFactory.service.in) | 0 | ||||
-rw-r--r-- | cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in (renamed from cpufreq/org.mate.panel.applet.cpufreq.gschema.xml.in) | 0 | ||||
-rw-r--r-- | cpufreq/src/Makefile.am | 8 |
9 files changed, 51 insertions, 50 deletions
diff --git a/cpufreq/Makefile.am b/cpufreq/Makefile.am index 8fb1386f..1fe1e1c9 100644 --- a/cpufreq/Makefile.am +++ b/cpufreq/Makefile.am @@ -1,48 +1,3 @@ -NULL = - -SUBDIRS = help pixmaps src - -cpufreq_gschema_in_files = org.mate.panel.applet.cpufreq.gschema.xml.in -gsettings_SCHEMAS = $(cpufreq_gschema_in_files:.xml.in=.xml) -@GSETTINGS_RULES@ - -appletdir = $(datadir)/mate-panel/applets -applet_in_files = org.mate.applets.CPUFreqApplet.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|\@LIBEXECDIR\@|$(libexecdir)|" \ - -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 $@ - -servicedir = $(datadir)/dbus-1/services -service_in_files = org.mate.panel.applet.CPUFreqAppletFactory.service.in -service_DATA = $(service_in_files:.service.in=.service) - -org.mate.panel.applet.CPUFreqAppletFactory.service: $(service_in_files) - $(AM_V_GEN)sed \ - -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ - $< > $@ - -CLEANFILES = \ - $(applet_DATA) \ - $(applet_in_files) \ - $(service_DATA) \ - $(gsettings_SCHEMAS) \ - *.gschema.valid \ - $(NULL) - -EXTRA_DIST = \ - $(applet_in_files).in \ - $(service_in_files) \ - $(cpufreq_gschema_in_files) \ - cpufreq-applet-menu.xml \ - cpufreq-preferences.ui \ - cpufreq-resources.gresource.xml \ - $(NULL) +SUBDIRS = help pixmaps data src -include $(top_srcdir)/git.mk diff --git a/cpufreq/data/Makefile.am b/cpufreq/data/Makefile.am new file mode 100644 index 00000000..b08d6345 --- /dev/null +++ b/cpufreq/data/Makefile.am @@ -0,0 +1,46 @@ +NULL = + +cpufreq_gschema_in_files = org.mate.panel.applet.cpufreq.gschema.xml.in +gsettings_SCHEMAS = $(cpufreq_gschema_in_files:.xml.in=.xml) +@GSETTINGS_RULES@ + +appletdir = $(datadir)/mate-panel/applets +applet_in_files = org.mate.applets.CPUFreqApplet.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|\@LIBEXECDIR\@|$(libexecdir)|" \ + -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 $@ + +servicedir = $(datadir)/dbus-1/services +service_in_files = org.mate.panel.applet.CPUFreqAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.CPUFreqAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid \ + $(NULL) + +EXTRA_DIST = \ + $(applet_in_files).in \ + $(service_in_files) \ + $(cpufreq_gschema_in_files) \ + cpufreq-applet-menu.xml \ + cpufreq-preferences.ui \ + cpufreq-resources.gresource.xml \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/cpufreq/cpufreq-applet-menu.xml b/cpufreq/data/cpufreq-applet-menu.xml index 98375818..98375818 100644 --- a/cpufreq/cpufreq-applet-menu.xml +++ b/cpufreq/data/cpufreq-applet-menu.xml diff --git a/cpufreq/cpufreq-preferences.ui b/cpufreq/data/cpufreq-preferences.ui index f155f73e..f155f73e 100644 --- a/cpufreq/cpufreq-preferences.ui +++ b/cpufreq/data/cpufreq-preferences.ui diff --git a/cpufreq/cpufreq-resources.gresource.xml b/cpufreq/data/cpufreq-resources.gresource.xml index 6ae8945a..6ae8945a 100644 --- a/cpufreq/cpufreq-resources.gresource.xml +++ b/cpufreq/data/cpufreq-resources.gresource.xml diff --git a/cpufreq/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in b/cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in index 168c6317..168c6317 100644 --- a/cpufreq/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in +++ b/cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in diff --git a/cpufreq/org.mate.panel.applet.CPUFreqAppletFactory.service.in b/cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in index a04c672b..a04c672b 100644 --- a/cpufreq/org.mate.panel.applet.CPUFreqAppletFactory.service.in +++ b/cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in diff --git a/cpufreq/org.mate.panel.applet.cpufreq.gschema.xml.in b/cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in index 694a75f7..694a75f7 100644 --- a/cpufreq/org.mate.panel.applet.cpufreq.gschema.xml.in +++ b/cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am index e7b42722..86b18674 100644 --- a/cpufreq/src/Makefile.am +++ b/cpufreq/src/Makefile.am @@ -44,11 +44,11 @@ mate_cpufreq_applet_LDADD = \ $(MATE_APPLETS4_LIBS) \ $(LIBCPUFREQ_LIBS) -cpufreq-resources.c: $(top_srcdir)/cpufreq/cpufreq-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/cpufreq --generate-dependencies $(top_srcdir)/cpufreq/cpufreq-resources.gresource.xml) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq --generate --c-name cpufreq $< +cpufreq-resources.c: $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/cpufreq/data --generate-dependencies $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq/data --generate --c-name cpufreq $< -cpufreq-resources.h: $(top_srcdir)/cpufreq/cpufreq-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/cpufreq --generate-dependencies $(top_srcdir)/cpufreq/cpufreq-resources.gresource.xml) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq --generate --c-name cpufreq $< +cpufreq-resources.h: $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/cpufreq/data --generate-dependencies $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq/data --generate --c-name cpufreq $< CLEANFILES = \ $(BUILT_SOURCES) |