diff options
author | Denis Barbier <barbier> | 2004-12-02 23:52:20 +0000 |
---|---|---|
committer | Denis Barbier <barbier> | 2004-12-02 23:52:20 +0000 |
commit | eb749f2398a8fa0a2595b8715964af3459c38cfe (patch) | |
tree | 2fdf7a480414f1079f0b35c5320c4768d4e51000 /Makefile.common | |
parent | af9136cfbf6acfa1fe7cde3bc466659f1e158990 (diff) |
Update dependencies for templates files, and add a 'gendep' target
to help maintaining these dependencies.
CVS version numbers
Makefile.common: 1.83 -> 1.84
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 61 |
1 files changed, 45 insertions, 16 deletions
diff --git a/Makefile.common b/Makefile.common index 60892022f2e..4b7a26bdc08 100644 --- a/Makefile.common +++ b/Makefile.common @@ -150,12 +150,30 @@ endif $(TEMPLDIR)/%.wml: touch $@ +gendep: + @for f in $(TEMPLDIR)/*.wml $(TEMPLDIR)/weeklynews/*.wml; do \ + grep -q '^#use wml::debian' $$f || continue; \ + g=`echo "$$f" | sed -e 's,$(TEMPLDIR),\$$(TEMPLDIR),'`; \ + grep '^#use wml::debian' $$f |\ + grep -v openrecode |\ + sed -e 's,.*::,\$$(TEMPLDIR)/,' \ + -e 's/ .*$$//' \ + -e 's/$$/.wml/' |\ + awk "BEGIN {printf \"X$$g:\"}"'{printf " %s", $$1}' |\ + fold -b -s -w 70 |\ + sed -e 's/^\$$/ \$$/' -e 's/^X//' -e '/:$$/d' -e '$$!s/$$/\\/'; \ + echo; \ + done + +# this dependency cannot be automatically computed +$(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml + +# dependencies below are generated by gendep and manually checked $(TEMPLDIR)/basic.wml: $(TEMPLDIR)/common_translation.wml \ - $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/header.wml \ - $(TEMPLDIR)/navbar.wml $(TEMPLDIR)/footer.wml + $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/footer.wml $(TEMPLDIR)/cdimage.wml: $(TEMPLDIR)/common_translation.wml \ $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/languages.wml \ - $(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/header.wml $(TEMPLDIR)/footer.wml + $(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/basic.wml $(TEMPLDIR)/common_translation.wml: $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/consultant.wml: $(TEMPLDIR)/common_tags.wml \ $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml @@ -163,19 +181,22 @@ $(TEMPLDIR)/countries.wml: $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/ctime.wml: $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/ddp.wml: $(TEMPLDIR)/basic.wml \ $(TEMPLDIR)/common_translation.wml $(TEMPLDIR)/languages.wml -$(TEMPLDIR)/events_common.wml: $(TEMPLDIR)/common_translation.wml +$(TEMPLDIR)/debian-cdd.wml: $(TEMPLDIR)/common_tags.wml \ + $(TEMPLDIR)/template.wml $(TEMPLDIR)/event.wml: $(TEMPLDIR)/events_common.wml \ $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml +$(TEMPLDIR)/events_common.wml: $(TEMPLDIR)/common_translation.wml $(TEMPLDIR)/fixes_link.wml: $(TEMPLDIR)/common_tags.wml -$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml $(TEMPLDIR)/common_tags.wml +$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml \ + $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/header.wml: $(TEMPLDIR)/common_translation.wml $(TEMPLDIR)/language_names.wml: $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/languages.wml: $(TEMPLDIR)/common_tags.wml \ $(TEMPLDIR)/language_names.wml -$(TEMPLDIR)/legal.wml: $(TEMPLDIR)/common_translation.wml \ - $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml \ - $(TEMPLDIR)/ctime.wml $(TEMPLDIR)/common_tags.wml \ - $(TEMPLDIR)/legal_tags.wml +$(TEMPLDIR)/legal.wml: $(TEMPLDIR)/common_tags.wml \ + $(TEMPLDIR)/common_translation.wml $(TEMPLDIR)/languages.wml \ + $(TEMPLDIR)/ctime.wml $(TEMPLDIR)/submenu.wml \ + $(TEMPLDIR)/legal_tags.wml $(TEMPLDIR)/basic.wml $(TEMPLDIR)/legal_lists.wml: $(TEMPLDIR)/ctime.wml \ $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/legal_tags.wml $(TEMPLDIR)/legal_tags.wml: $(TEMPLDIR)/common_tags.wml \ @@ -196,17 +217,25 @@ $(TEMPLDIR)/past_event.wml: $(TEMPLDIR)/events_common.wml \ $(TEMPLDIR)/recent_list.wml: $(TEMPLDIR)/ctime.wml \ $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/legal_tags.wml $(TEMPLDIR)/release.wml: $(TEMPLDIR)/languages.wml -$(TEMPLDIR)/security.wml: $(TEMPLDIR)/common_translation.wml \ - $(TEMPLDIR)/basic.wml $(TEMPLDIR)/fixes_link.wml $(TEMPLDIR)/languages.wml \ - $(TEMPLDIR)/ctime.wml $(TEMPLDIR)/common_tags.wml \ - $(TEMPLDIR)/securityreferences.wml -$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml +$(TEMPLDIR)/security.wml: $(TEMPLDIR)/common_tags.wml \ + $(TEMPLDIR)/common_translation.wml $(TEMPLDIR)/fixes_link.wml \ + $(TEMPLDIR)/languages.wml $(TEMPLDIR)/ctime.wml \ + $(TEMPLDIR)/securityreferences.wml $(TEMPLDIR)/basic.wml +$(TEMPLDIR)/speakers.wml: $(TEMPLDIR)/common_tags.wml \ + $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml +$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml \ + $(TEMPLDIR)/languages.wml $(TEMPLDIR)/todoitem.wml: $(TEMPLDIR)/common_tags.wml +$(TEMPLDIR)/translation-check.wml: $(TEMPLDIR)/languages.wml \ + $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/url.wml: $(TEMPLDIR)/common_tags.wml -$(TEMPLDIR)/votebar.wml: $(TEMPLDIR)/languages.wml $(TEMPLDIR)/common_tags.wml +$(TEMPLDIR)/votebar.wml: $(TEMPLDIR)/languages.wml \ + $(TEMPLDIR)/common_tags.wml +$(TEMPLDIR)/wnpp.wml: $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/weeklynews/footer.wml: $(TEMPLDIR)/common_tags.wml $(TEMPLDIR)/weeklynews/header.wml: $(TEMPLDIR)/common_tags.wml \ - $(TEMPLDIR)/ctime.wml $(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/template.wml + $(TEMPLDIR)/ctime.wml $(TEMPLDIR)/links.tags.wml \ + $(TEMPLDIR)/template.wml # Pics ifneq "$(wildcard $(WMLBASE)/Pics/sitemap.$(LANGUAGE).gif)" "" |