aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2018-06-02 23:58:30 +0100
committerSteve McIntyre <steve@einval.com>2018-06-03 00:01:51 +0100
commite8de62562b68a6e25eb3ec4e263e68b56a861f9b (patch)
tree5ad6cf28345d3ccd9ea3d13610ed3df9417bdda5
parent109a2ebb2516324c1be774acaee7a1dc9e2a2a99 (diff)
Add translation-check.wml as a depfor all non-english .wml files
The output of this template file matters in all translated files, and especially while we're still hacking on it make it easier for make to track this dependency.
-rw-r--r--Makefile.common9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 56aca9dd7c6..9465f000bb4 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -93,8 +93,13 @@ $(existing-SUBS-cleandest):
# the rule for every wml file
ifndef NOGENERICDEP
-%.$(LANGUAGE).html : %.wml $(WMLRCDEP) $(GETTEXTDEP) \
- $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
+ifeq "$(LANGUAGE)" "en"
+ EXTRAWMLDEP := $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
+else
+ EXTRAWMLDEP := $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/translation-check.wml
+endif
+
+%.$(LANGUAGE).html : %.wml $(EXTRAWMLDEP)
$(WML) $(<F)
ifeq "$(LANGUAGE)" "en"
-$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)

© 2014-2024 Faster IT GmbH | imprint | privacy policy