2 # requires a checkout of webwml/template/debian from the webwml tree!
4 TEMPLDIR := ../../webwml/english/template/debian
5 DEBTEMPLATES := $(wildcard $(TEMPLDIR)/*.wml) \
6 $(wildcard template/*.wml) \
8 TARGETDIR := /var/www/userdir-ldap
10 WMLFILES := $(wildcard *.wml)
11 HTMLFILES := $(subst .wml,.html,$(WMLFILES))
12 DESTHTMLFILES := $(patsubst %.wml,$(TARGETDIR)/%.html,$(WMLFILES))
13 OTHERFILES := $(wildcard *.cgi) $(wildcard *.cfg) $(wildcard *.tab)
14 DESTOTHERFILES := $(patsubst %,$(TARGETDIR)/%,$(OTHERFILES))
20 %.html: %.wml $(DEBTEMPLATES)
21 wml $(WML_DEFS) $< -o UNDEFuEN:$@
23 install: $(DESTHTMLFILES) $(DESTOTHERFILES)
25 $(DESTHTMLFILES) $(DESTOTHERFILES): $(TARGETDIR)/%: %
26 @test -d $(TARGETDIR) || mkdir -p $(TARGETDIR)
27 install -m 644 -p $(@F) $(TARGETDIR)
32 update.html :: domains.tab
35 isoquery -i 3166 -c | cut -f 1,4 > "$@"