aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
authorJosip Rodin <joy>2008-08-17 01:12:30 +0000
committerJosip Rodin <joy>2008-08-17 01:12:30 +0000
commitcdd5f8e06483c8675d6208b0c54d83da5b828c46 (patch)
treea0ee07f3e10c9c942cae17ee720cf51e50530294 /Makefile.common
parenta65dcdab33cbf493b88f4067a6557945bc6e03c4 (diff)
fix up touch_translations.pl invocation logic so it's less convoluted; use the CUR_DIR (local) variable rather than CURDIR (global) so that we don't accidentally do it in the wrong place for someone
CVS version numbers Makefile.common: 1.94 -> 1.95
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.common b/Makefile.common
index 763ee690319..81c3fa6cd1f 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -75,19 +75,20 @@ $(existing-SUBS-cleandest):
# the rule for every wml file
ifndef NOGENERICDEP
+
%.$(LANGUAGE).html : %.wml $(WMLRCDEP) $(GETTEXTDEP) \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
$(WML) $(<F)
ifeq "$(LANGUAGE)" "en"
-ifeq "$(findstring /international/,$(CURDIR)/)" ""
-$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
-endif
-endif
-ifneq "$(findstring /international/,$(CURDIR)/)" ""
+else
+ifneq "$(findstring international,$(CUR_DIR))" ""
-$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
endif
endif
+endif
+
ifndef NOGENERICINSTDEP
$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@test -d $(HTMLDIR) || mkdir -m g+w -p $(HTMLDIR)

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