po/automake.mk: Fixed typo in variable names.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 5 Sep 2020 02:33:59 +0000 (04:33 +0200)
This resulted in po/pspp.pot not getting updated when it should have been.
This is a very good demonstration of the reason why carefully desigined
languages should insist on a variable being declared before it is used.

Also make the file depend on Makefile, so that it gets rebuilt when the
PACKAGE VERSION changes.

po/automake.mk

index 2b696babf2bd73825ae132342e320229c40679a9..3848cd72fb3ac7eaa8194052135553453c74fa47 100644 (file)
@@ -54,13 +54,13 @@ XGETTEXT_OPTIONS = \
        --add-comments='TRANSLATORS:' \
        --directory=$(top_srcdir)
 
-ALL_TRANSLATEABLE_FILES = \
-       $(TRANSLATEABLE_FILES) \
+ALL_TRANSLATABLE_FILES = \
+       $(TRANSLATABLE_FILES) \
        $(UI_FILES) \
        src/ui/gui/org.fsf.pspp.metainfo.xml.in \
        src/ui/gui/org.fsf.pspp.desktop.in
 
-$(POTFILE): $(ALL_TRANSLATABLE_FILES)
+$(POTFILE): $(ALL_TRANSLATABLE_FILES) Makefile
        @$(MKDIR_P) po
        $(AM_V_GEN)$(XGETTEXT) $(XGETTEXT_OPTIONS) $(TRANSLATABLE_FILES) --language=C --keyword=_ --keyword=N_ -o $@,tmp
        $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=Glade -o $@,tmp