summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-03-29 14:24:16 +0200
committerJonas Smedegaard <dr@jones.dk>2021-03-29 14:24:16 +0200
commit806f0098c14b998715a75d91b88fc5a7e9867172 (patch)
tree2b8f5b304b695465d8a07bd9ac341b5e52f429a4 /Makefile
parentc1aa8034488b7c7dee475038225342a696980cfe (diff)
fix build forms
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4f99a5e..0046921 100644
--- a/Makefile
+++ b/Makefile
@@ -61,8 +61,8 @@ 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)';\
- $(foreach htmlstempath,$(path:%.cgi=build/html/%),\
+ perl -i -pe "s:'../build:'$(CURDIR)/build:g" 'build/forms/$(path)';\
+ $(foreach htmlstempath,$(path:%.cgi=build/html/%/index),\
cp -f $(htmlstempath).html $(htmlstempath).tmpl;\
FORMBUILDER_NOHEADER=1 'build/forms/$(path)' > $(htmlstempath).html~;\
mv -f $(htmlstempath).html~ $(htmlstempath).html;\