Commit cdd5f8e0 authored by Josip Rodin's avatar Josip Rodin

fix up touch_translations.pl invocation logic so it's less convoluted; use the...

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
parent a65dcdab
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment