summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index adedae8..59c7274 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,9 @@ build:
set -e;\
$(foreach path,$(patsubst forms/%,%,$(wildcard forms/*.cgi forms/*/*.cgi)),\
install -DT 'forms/$(path)' 'build/forms/$(path)'; \
- perl -i -pe "s:'../build':'$(CURDIR)/build':g" 'build/forms/$(path)';)
+ perl -i -pe "s:'../build':'$(CURDIR)/build':g" 'build/forms/$(path)';\
+ $(foreach htmlstempath,$(path:%.cgi=build/html/%),\
+ $(if $(wildcard $(htmlstempath).tmpl),,cp $(htmlstempath).html $(htmlstempath).tmpl;)\
+ 'build/forms/$(path)' > $(htmlstempath).html))
.PHONY: all build configfiles