summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-02-26 17:47:19 +0100
committerJonas Smedegaard <dr@jones.dk>2015-02-26 17:48:39 +0100
commitf22e9ed51f5c3701383a7851abceee22dcd3da27 (patch)
tree88b54d9e79fdcb0418ba92c2eeabee7c7cff51a9 /Makefile
parent08a672bd4dbb9971d2af0898117b7db214cc1c57 (diff)
Handle optional forms: Copy, set executable and expand build_path.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f0366d..acf4f4f 100644
--- a/Makefile
+++ b/Makefile
@@ -49,5 +49,8 @@ content:
build:
$(if $(cssprojects),$(MAKE) $(cssprojects))
$(foreach config,$(shell find config -name '*.setup'),ikiwiki --setup $(config)$(avoid-broken-git)$(if $(always-make), --rebuild, --refresh);)
+ $(if $(wildcard forms),cd forms && find * -name '*.cgi' \
+ -exec install -DT '{}' ../build/forms/'{}' ';' \
+ -exec perl -i -pe "s:'../build':'$(CURDIR)':g" ../build/forms/'{}' ';')
.PHONY: all build configfiles