po: Add new variable LOCALPOFILES to hold locally managed .po files
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Jan 2017 06:28:52 +0000 (07:28 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Jan 2017 06:28:52 +0000 (07:28 +0100)
This variable holds .po files not managed by translationproject.org

po/automake.mk

index b4c8027ce1b0bde7c3177fec5eab2b8cf28da606..7c349f0af88f1da6e757504f78e36fdee6f8b978 100644 (file)
@@ -23,6 +23,8 @@ POFILES = \
        po/uk.po \
        po/zh_CN.po
 
+LOCALPOFILES = po/cs.po po/en_GB.po
+
 POTFILE=po/$(DOMAIN).pot
 
 TRANSLATABLE_FILES = $(DIST_SOURCES) $(all_q_sources)
@@ -42,7 +44,7 @@ $(POTFILE): $(TRANSLATABLE_FILES) $(UI_FILES) src/ui/gui/gen-dot-desktop.sh
        $(AM_V_at)$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j src/ui/gui/gen-dot-desktop.sh --language=shell --keyword=TRANSLATE -o $@,tmp
        $(AM_V_at)$(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@
 
-$(POFILES): $(POTFILE)
+$(LOCALPOFILED) $(POFILES): $(POTFILE)
        $(AM_V_GEN)$(MSGMERGE) --quiet $(top_srcdir)/$@ $? -o $@,tmp
        $(AM_V_at)if test -e $(top_srcdir)/$@,aux ; then \
                 touch $@,tmp ; \
@@ -58,7 +60,7 @@ SUFFIXES += .po .gmo
        $(AM_V_GEN)$(MSGFMT) $< -o $@
 
 
-GMOFILES = $(POFILES:.po=.gmo)
+GMOFILES = $(LOCALPOFILES:.po=.gmo) $(POFILES:.po=.gmo)
 
 ALL_LOCAL += $(GMOFILES)
 
@@ -77,6 +79,7 @@ uninstall-hook:
 
 
 EXTRA_DIST += \
+       $(LOCALPOFILES) \
        $(POFILES) \
        $(POTFILE) \
        po/ChangeLog \
@@ -88,8 +91,8 @@ CLEANFILES += $(GMOFILES) $(POTFILE)
 # the source directory.
 po_CLEAN:
        @if test "$(srcdir)" != .; then \
-               echo rm -f $(POFILES); \
-               rm -f $(POFILES); \
+               echo rm -f $(LOCALPOFILES) $(POFILES); \
+               rm -f $(LOCALPOFILES) $(POFILES); \
        fi
 CLEAN_LOCAL += po_CLEAN