1APPLET_LOCATION = $(libexecdir)/command-applet
2
3appletsdir       = $(datadir)/mate-panel/applets
4applets_in_files = org.mate.applets.CommandApplet.mate-panel-applet.desktop.in
5applets_DATA     = $(applets_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
6
7$(applets_in_files): $(applets_in_files).in Makefile
8	$(AM_V_GEN)sed \
9		-e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
10		$< > $@
11
12$(applets_DATA): $(applets_in_files) Makefile
13	$(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
14
15servicedir       = $(datadir)/dbus-1/services
16service_in_files = org.mate.panel.applet.CommandAppletFactory.service.in
17service_DATA     = $(service_in_files:.service.in=.service)
18
19org.mate.panel.applet.CommandAppletFactory.service: $(service_in_files)
20	$(AM_V_GEN)sed \
21		-e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
22		$< > $@
23
24command_gschema_in_files = org.mate.panel.applet.command.gschema.xml.in
25gsettings_SCHEMAS = $(command_gschema_in_files:.xml.in=.xml)
26@GSETTINGS_RULES@
27
28EXTRA_DIST = \
29	$(applets_in_files).in \
30	$(service_in_files) \
31	$(command_gschema_in_files) \
32	command-preferences.ui \
33	command-resources.gresource.xml
34
35CLEANFILES = \
36	$(applets_DATA) \
37	$(applets_in_files) \
38	$(service_DATA) \
39	$(gsettings_SCHEMAS) \
40	*.gschema.valid
41
42-include $(top_srcdir)/git.mk
43