diff options
author | Ryuunosuke Ayanokouzi <ayanokouzi-guest> | 2016-03-28 01:21:50 +0000 |
---|---|---|
committer | Ryuunosuke Ayanokouzi <ayanokouzi-guest> | 2016-03-28 01:21:50 +0000 |
commit | 967af1426bb6c0ead9a8d1da0bc30f79cd1801a6 (patch) | |
tree | 9f28cb499a45105d87cea6cb46a9ebb96409b90a /english/women | |
parent | c006ccf3f65b23efc8204f1fabe321c2719fc82f (diff) |
Fix make rules that keeps %.$(LANGUAGE).html targets non-updated.
* Currently, defined rules in english/women/profiles/Makefile are NOT working
and a rule in Makefile.common is working instead of them,
because variable NOGENERICDEP has an empty value.
* Set variable NOGENERICDEP true to run overridden rules.
* Merge prerequisites and recipe.
CVS version numbers
english/women/profiles/Makefile: 1.4 -> 1.5
Diffstat (limited to 'english/women')
-rw-r--r-- | english/women/profiles/Makefile | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/english/women/profiles/Makefile b/english/women/profiles/Makefile index 7446615949a..9d7cdf188d9 100644 --- a/english/women/profiles/Makefile +++ b/english/women/profiles/Makefile @@ -7,14 +7,32 @@ SUBS=pictures PROFILES := $(filter-out index.wml, $(wildcard *.wml)) ## GETTEXTFILES += others.mo +NOGENERICDEP := true include $(WMLBASE)/Make.lang -index.$(LANGUAGE).html: index.wml $(PROFILES) \ - $(TEMPLDIR)/template.wml $(TEMPLDIR)/users_list.wml \ - $(GETTEXTDEP) +index.$(LANGUAGE).html : index.wml $(WMLRCDEP) $(GETTEXTDEP) \ + $(PROFILES) \ + $(TEMPLDIR)/users_list.wml \ + $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(WML) $(<F) +ifeq "$(LANGUAGE)" "en" + -$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE) +else +ifneq "$(findstring international,$(CUR_DIR))" "" + -$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE) +endif +endif -%.$(LANGUAGE).html: %.wml \ - $(ENGLISHSRCDIR)/women/profiles/profiles.def $(TEMPLDIR)/faqs.wml \ - $(TEMPLDIR)/profiles.wml +%.$(LANGUAGE).html : %.wml $(WMLRCDEP) $(GETTEXTDEP) \ + $(ENGLISHSRCDIR)/women/profiles/profiles.def \ + $(TEMPLDIR)/faqs.wml \ + $(TEMPLDIR)/profiles.wml \ + $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(WML) $(<F) +ifeq "$(LANGUAGE)" "en" + -$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE) +else +ifneq "$(findstring international,$(CUR_DIR))" "" + -$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE) +endif +endif |