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 16mate_screenshotdir = $(datadir)/applications 17mate_screenshot_in_files = mate-screenshot.desktop.in 18mate_screenshot_DATA = $(mate_screenshot_in_files:.desktop.in=.desktop) 19 20$(mate_screenshot_DATA): $(mate_screenshot_in_files) 21if USE_NLS 22 $(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Name --keyword=Comment --keyword=Keywords --template $< -d $(top_srcdir)/po -o $@ 23else 24 $(AM_V_GEN) cp $< $@ 25endif 26 27man_MANS = mate-screenshot.1 28 29appdatadir = $(datadir)/metainfo 30appdata_in_files = mate-screenshot.appdata.xml.in 31appdata_DATA = $(appdata_in_files:.xml.in=.xml) 32$(appdata_DATA): $(appdata_in_files) 33if USE_NLS 34 $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ 35else 36 $(AM_V_GEN) cp $< $@ 37endif 38 39gsettings_SCHEMAS = org.mate.screenshot.gschema.xml 40@GSETTINGS_RULES@ 41 42EXTRA_DIST = \ 43 $(appdata_in_files) \ 44 $(mate_screenshot_in_files) \ 45 $(man_MANS) \ 46 mate-screenshot.ui \ 47 org.mate.screenshot.gresource.xml 48 49CLEANFILES = \ 50 $(gsettings_SCHEMAS) \ 51 $(mate_screenshot_DATA) \ 52 $(appdata_DATA) 53 54dist-hook: 55 cd $(distdir) ; rm -f $(CLEANFILES) 56 57install-exec-local: 58 rm -f $(DESTDIR)$(mandir)/man1/mate-panel-screenshot.1 59 ln -s mate-screenshot.1 $(DESTDIR)$(mandir)/man1/mate-panel-screenshot.1 60 61-include $(top_srcdir)/git.mk 62