diff options
author | rbuj <[email protected]> | 2020-08-01 13:50:38 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-08-11 16:45:02 +0200 |
commit | 1ee4ea5cc7e554b481da4e052e1c7b46d03b6b5b (patch) | |
tree | 8c3879b070337e1b2691a41dc7c277048a15f173 | |
parent | 480394cdee90346d4fba01e113c007cd5771fa80 (diff) | |
download | mate-applets-1ee4ea5cc7e554b481da4e052e1c7b46d03b6b5b.tar.bz2 mate-applets-1ee4ea5cc7e554b481da4e052e1c7b46d03b6b5b.tar.xz |
command: Use common subdirs - src, data
-rw-r--r-- | command/Makefile.am | 61 | ||||
-rw-r--r-- | command/data/Makefile.am | 42 | ||||
-rw-r--r-- | command/data/command-preferences.ui (renamed from command/command-preferences.ui) | 0 | ||||
-rw-r--r-- | command/data/command-resources.gresource.xml (renamed from command/command-resources.gresource.xml) | 0 | ||||
-rw-r--r-- | command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in (renamed from command/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in) | 0 | ||||
-rw-r--r-- | command/data/org.mate.panel.applet.CommandAppletFactory.service.in (renamed from command/org.mate.panel.applet.CommandAppletFactory.service.in) | 0 | ||||
-rw-r--r-- | command/data/org.mate.panel.applet.command.gschema.xml.in (renamed from command/org.mate.panel.applet.command.gschema.xml.in) | 0 | ||||
-rw-r--r-- | command/src/Makefile.am | 44 | ||||
-rw-r--r-- | command/src/command.c (renamed from command/command.c) | 0 | ||||
-rw-r--r-- | command/src/ma-command.c (renamed from command/ma-command.c) | 0 | ||||
-rw-r--r-- | command/src/ma-command.h (renamed from command/ma-command.h) | 0 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | po/POTFILES.in | 8 |
13 files changed, 94 insertions, 65 deletions
diff --git a/command/Makefile.am b/command/Makefile.am index 81debe28..5d55ad08 100644 --- a/command/Makefile.am +++ b/command/Makefile.am @@ -1,62 +1,3 @@ -AM_CPPFLAGS = \ - $(MATE_APPLETS4_CFLAGS) \ - -I$(srcdir) \ - $(DISABLE_DEPRECATED_CFLAGS) - -APPLET_LOCATION = $(libexecdir)/command-applet - -libexec_PROGRAMS = command-applet - -BUILT_SOURCES = command-resources.c command-resources.h -nodist_command_applet_SOURCES = $(BUILT_SOURCES) -command_applet_SOURCES = command.c ma-command.c ma-command.h -command_applet_LDADD = $(MATE_APPLETS4_LIBS) -command_applet_CFLAGS = $(WARN_CFLAGS) - -command-resources.c: command-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/command-resources.gresource.xml) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name command $< - -command-resources.h: command-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/command-resources.gresource.xml) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name command $< - -appletsdir = $(datadir)/mate-panel/applets -applets_in_files = org.mate.applets.CommandApplet.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)|" \ - $< > $@ - -$(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.CommandAppletFactory.service.in -service_DATA = $(service_in_files:.service.in=.service) - -org.mate.panel.applet.CommandAppletFactory.service: $(service_in_files) - $(AM_V_GEN)sed \ - -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \ - $< > $@ - -command_gschema_in_files = org.mate.panel.applet.command.gschema.xml.in -gsettings_SCHEMAS = $(command_gschema_in_files:.xml.in=.xml) -@GSETTINGS_RULES@ - -EXTRA_DIST = \ - $(applets_in_files).in \ - $(service_in_files) \ - $(command_gschema_in_files) \ - command-preferences.ui \ - command-resources.gresource.xml - -CLEANFILES = \ - $(BUILT_SOURCES) \ - $(applets_DATA) \ - $(applets_in_files) \ - $(service_DATA) \ - $(gsettings_SCHEMAS) \ - *.gschema.valid +SUBDIRS = data src -include $(top_srcdir)/git.mk diff --git a/command/data/Makefile.am b/command/data/Makefile.am new file mode 100644 index 00000000..b94e9523 --- /dev/null +++ b/command/data/Makefile.am @@ -0,0 +1,42 @@ +APPLET_LOCATION = $(libexecdir)/command-applet + +appletsdir = $(datadir)/mate-panel/applets +applets_in_files = org.mate.applets.CommandApplet.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)|" \ + $< > $@ + +$(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.CommandAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.CommandAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \ + $< > $@ + +command_gschema_in_files = org.mate.panel.applet.command.gschema.xml.in +gsettings_SCHEMAS = $(command_gschema_in_files:.xml.in=.xml) +@GSETTINGS_RULES@ + +EXTRA_DIST = \ + $(applets_in_files).in \ + $(service_in_files) \ + $(command_gschema_in_files) \ + command-preferences.ui \ + command-resources.gresource.xml + +CLEANFILES = \ + $(applets_DATA) \ + $(applets_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid + +-include $(top_srcdir)/git.mk diff --git a/command/command-preferences.ui b/command/data/command-preferences.ui index 9a2d5435..9a2d5435 100644 --- a/command/command-preferences.ui +++ b/command/data/command-preferences.ui diff --git a/command/command-resources.gresource.xml b/command/data/command-resources.gresource.xml index 72f8ac4c..72f8ac4c 100644 --- a/command/command-resources.gresource.xml +++ b/command/data/command-resources.gresource.xml diff --git a/command/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in b/command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in index 04f76f4a..04f76f4a 100644 --- a/command/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in +++ b/command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in diff --git a/command/org.mate.panel.applet.CommandAppletFactory.service.in b/command/data/org.mate.panel.applet.CommandAppletFactory.service.in index a4e04846..a4e04846 100644 --- a/command/org.mate.panel.applet.CommandAppletFactory.service.in +++ b/command/data/org.mate.panel.applet.CommandAppletFactory.service.in diff --git a/command/org.mate.panel.applet.command.gschema.xml.in b/command/data/org.mate.panel.applet.command.gschema.xml.in index b352a21b..b352a21b 100644 --- a/command/org.mate.panel.applet.command.gschema.xml.in +++ b/command/data/org.mate.panel.applet.command.gschema.xml.in diff --git a/command/src/Makefile.am b/command/src/Makefile.am new file mode 100644 index 00000000..d0d2065a --- /dev/null +++ b/command/src/Makefile.am @@ -0,0 +1,44 @@ +NULL = + +AM_CPPFLAGS = \ + $(MATE_APPLETS4_CFLAGS) \ + -I$(srcdir) \ + $(DISABLE_DEPRECATED_CFLAGS) \ + $(NULL) + +libexec_PROGRAMS = command-applet + +BUILT_SOURCES = \ + command-resources.c \ + command-resources.h \ + $(NULL) + +nodist_command_applet_SOURCES = \ + $(BUILT_SOURCES) \ + $(NULL) + +command_applet_SOURCES = \ + command.c \ + ma-command.c \ + ma-command.h \ + $(NULL) + +command_applet_LDADD = \ + $(MATE_APPLETS4_LIBS) \ + $(NULL) + +command_applet_CFLAGS = \ + $(WARN_CFLAGS) \ + $(NULL) + +command-resources.c: $(srcdir)/../data/command-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/command-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name command $< + +command-resources.h: $(srcdir)/../data/command-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/command-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name command $< + +CLEANFILES = \ + $(BUILT_SOURCES) \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/command/command.c b/command/src/command.c index f53bef43..f53bef43 100644 --- a/command/command.c +++ b/command/src/command.c diff --git a/command/ma-command.c b/command/src/ma-command.c index da0e8795..da0e8795 100644 --- a/command/ma-command.c +++ b/command/src/ma-command.c diff --git a/command/ma-command.h b/command/src/ma-command.h index 8fb51ab3..8fb51ab3 100644 --- a/command/ma-command.h +++ b/command/src/ma-command.h diff --git a/configure.ac b/configure.ac index 19bf2be0..1b1d1134 100644 --- a/configure.ac +++ b/configure.ac @@ -603,7 +603,9 @@ cpufreq/help/Makefile timerapplet/Makefile timerapplet/org.mate.panel.applet.timer.gschema.xml command/Makefile -command/org.mate.panel.applet.command.gschema.xml +command/data/Makefile +command/data/org.mate.panel.applet.command.gschema.xml +command/src/Makefile netspeed/Makefile netspeed/data/Makefile netspeed/data/org.mate.panel.applet.netspeed.gschema.xml diff --git a/po/POTFILES.in b/po/POTFILES.in index ea0cb3e1..748cedc3 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -13,10 +13,10 @@ charpick/charpick.c charpick/org.mate.applets.CharpickerApplet.mate-panel-applet.desktop.in.in charpick/org.mate.panel.applet.charpick.gschema.xml.in charpick/properties.c -command/command.c -command/command-preferences.ui -command/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in -command/org.mate.panel.applet.command.gschema.xml.in +command/data/command-preferences.ui +command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in +command/data/org.mate.panel.applet.command.gschema.xml.in +command/src/command.c cpufreq/cpufreq-preferences.ui cpufreq/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in cpufreq/org.mate.panel.applet.cpufreq.gschema.xml.in |