Commit eb749f23 authored by Denis Barbier's avatar Denis Barbier

Update dependencies for templates files, and add a 'gendep' target

to help maintaining these dependencies.

CVS version numbers

Makefile.common: 1.83 -> 1.84
parent af9136cf
......@@ -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)" ""
......
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