X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=html%2FMakefile;fp=html%2FMakefile;h=b90ace836557988ad4e0cd52fb20a2cacbca3bca;hb=67b97e55d95a26cfbc551c7f87fc233fb00bb7e2;hp=0000000000000000000000000000000000000000;hpb=75ef846aa2230392b498cf9294f57d0705e59744;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/html/Makefile b/html/Makefile new file mode 100644 index 0000000..b90ace8 --- /dev/null +++ b/html/Makefile @@ -0,0 +1,34 @@ +# special Makefile +# requires a checkout of webwml/template/debian from the webwml tree! + +TEMPLDIR := ../../webwml/english/template/debian +DEBTEMPLATES := $(wildcard $(TEMPLDIR)/*.wml) \ + $(wildcard template/*.wml) \ + .wmlrc +TARGETDIR := /var/www/userdir-ldap + +WMLFILES := $(wildcard *.wml) +HTMLFILES := $(subst .wml,.html,$(WMLFILES)) +DESTHTMLFILES := $(patsubst %.wml,$(TARGETDIR)/%.html,$(WMLFILES)) +OTHERFILES := $(wildcard *.cgi) $(wildcard *.cfg) $(wildcard *.tab) +DESTOTHERFILES := $(patsubst %,$(TARGETDIR)/%,$(OTHERFILES)) + +WML_DEFS := + +all: $(HTMLFILES) + +%.html: %.wml $(DEBTEMPLATES) + wml $(WML_DEFS) $< -o UNDEFuEN:$@ + +install: $(DESTHTMLFILES) $(DESTOTHERFILES) + +$(DESTHTMLFILES) $(DESTOTHERFILES): $(TARGETDIR)/%: % + @test -d $(TARGETDIR) || mkdir -p $(TARGETDIR) + install -m 644 -p $(@F) $(TARGETDIR) + +clean: + rm -f $(HTMLFILES) + +update.html :: domains.tab + +.SUFFIXES: