1# This file is part of MATE Utils.
2#
3# MATE Utils is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# MATE Utils is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with MATE Utils.  If not, see <https://www.gnu.org/licenses/>.
15
16icondir = $(datadir)/pixmaps/mate-search-tool
17icon_DATA = thumbnail_frame.png
18
19gsettingsschema_in_files = org.mate.search-tool.gschema.xml.in
20gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
21.PRECIOUS: $(gsettings_SCHEMAS)
22@GSETTINGS_RULES@
23
24appdatadir = $(datadir)/metainfo
25appdata_in_files = mate-search-tool.appdata.xml.in
26appdata_DATA = $(appdata_in_files:.xml.in=.xml)
27
28$(appdata_DATA): $(appdata_in_files)
29if USE_NLS
30	$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
31else
32	$(AM_V_GEN) cp $< $@
33endif
34
35man_MANS = mate-search-tool.1
36
37Utilitiesdir = $(datadir)/applications
38Utilities_in_files = mate-search-tool.desktop.in
39Utilities_DATA = $(Utilities_in_files:.desktop.in=.desktop)
40
41$(Utilities_DATA): $(Utilities_in_files)
42if USE_NLS
43	$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Name --keyword=Comment --keyword=Keywords --template $< -d $(top_srcdir)/po -o $@
44else
45	$(AM_V_GEN) cp $< $@
46endif
47
48EXTRA_DIST = \
49	$(icon_DATA) \
50	$(appdata_in_files) \
51	$(Utilities_in_files) \
52	$(Utilities_DATA) \
53	$(gsettingsschema_in_files) \
54	$(man_MANS)
55
56CLEANFILES = \
57	mate-search-tool.appdata.xml \
58	mate-search-tool.desktop \
59	$(gsettings_SCHEMAS)
60
61disthook:
62	cd $(distdir) ; rm -f $(CLEANFILES)
63
64-include $(top_srcdir)/git.mk
65