summaryrefslogtreecommitdiff
path: root/font-viewer/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'font-viewer/Makefile.am')
-rw-r--r--font-viewer/Makefile.am14
1 files changed, 10 insertions, 4 deletions
diff --git a/font-viewer/Makefile.am b/font-viewer/Makefile.am
index 9dbaee9c..d2ea43ca 100644
--- a/font-viewer/Makefile.am
+++ b/font-viewer/Makefile.am
@@ -35,7 +35,11 @@ desktopdir = $(datadir)/applications
desktop_in_files = mate-font-viewer.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
$(desktop_DATA): $(desktop_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Name --keyword=Comment --keyword=Keywords --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) sed '/^# Translators/d' < $< > $@
+endif
install-data-local: install-desktop-database
@@ -45,11 +49,13 @@ install-desktop-database: install-desktopDATA
uninstall-local:
rm -f $(DESTDIR)$(desktopdir)/mimeinfo.cache
-CLEANFILES = $(desktop_DATA) \
- $(schemas_DATA) $(directory_DATA)
+CLEANFILES = \
+ $(desktop_DATA) \
+ $(schemas_DATA) \
+ $(directory_DATA)
EXTRA_DIST = \
- $(thumbnailer_DATA) \
- $(desktop_in_files)
+ $(desktop_in_files) \
+ $(thumbnailer_DATA)
-include $(top_srcdir)/git.mk