projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i18n: Use UTF8 macro instead of "UTF8" literal string.
[pspp]
/
po
/
automake.mk
diff --git
a/po/automake.mk
b/po/automake.mk
index 67d68d741e24a6e09ef7506d4b54841db8e7e099..945e2557bf4ae2234ac23dcee431c0b3cb11aa0b 100644
(file)
--- a/
po/automake.mk
+++ b/
po/automake.mk
@@
-4,7
+4,7
@@
XGETTEXT=xgettext
MSGMERGE=msgmerge
MSGFMT=msgfmt
MSGMERGE=msgmerge
MSGFMT=msgfmt
-POFILES=po/
en_GB
.po po/nl.po po/pt_BR.po
+POFILES=po/
ca.po po/en_GB.po po/es
.po po/nl.po po/pt_BR.po
POTFILE=po/$(DOMAIN).pot
POTFILE=po/$(DOMAIN).pot
@@
-24,9
+24,10
@@
$(POTFILE): $(TRANSLATABLE_FILES) $(UI_FILES)
$(POFILES): $(POTFILE)
$(POFILES): $(POTFILE)
- $(MSGMERGE) $(top_srcdir)/$@ $
<
-o $@
+ $(MSGMERGE) $(top_srcdir)/$@ $
?
-o $@
+SUFFIXES += .po .gmo
.po.gmo:
@$(MKDIR_P) `dirname $@`
$(MSGFMT) $< -o $@
.po.gmo:
@$(MKDIR_P) `dirname $@`
$(MSGFMT) $< -o $@
@@
-39,17
+40,26
@@
ALL_LOCAL += $(GMOFILES)
install-data-hook: $(GMOFILES)
for f in $(GMOFILES); do \
lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
install-data-hook: $(GMOFILES)
for f in $(GMOFILES); do \
lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
- $(INSTALL) -D $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
+ $(MKDIR_P) $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES; \
+ $(INSTALL_DATA) $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
done
uninstall-hook:
for f in $(GMOFILES); do \
lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
done
uninstall-hook:
for f in $(GMOFILES); do \
lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
-
$(RM)
$(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
+
rm -f
$(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
done
EXTRA_DIST += $(POFILES) $(POTFILE)
done
EXTRA_DIST += $(POFILES) $(POTFILE)
-CLEANFILES += $(
POFILES) $(
GMOFILES) $(POTFILE)
+CLEANFILES += $(GMOFILES) $(POTFILE)
+# Clean $(POFILES) from build directory but not if that's the same as
+# the source directory.
+po_CLEAN:
+ @if test "$(srcdir)" != .; then \
+ echo rm -f $(POFILES); \
+ rm -f $(POFILES); \
+ fi
+CLEAN_LOCAL += po_CLEAN