From eb749f2398a8fa0a2595b8715964af3459c38cfe Mon Sep 17 00:00:00 2001 From: Denis Barbier Date: Thu, 2 Dec 2004 23:52:20 +0000 Subject: Update dependencies for templates files, and add a 'gendep' target to help maintaining these dependencies. CVS version numbers Makefile.common: 1.83 -> 1.84 --- Makefile.common | 61 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 45 insertions(+), 16 deletions(-) (limited to 'Makefile.common') 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)" "" -- cgit v1.2.3