summaryrefslogtreecommitdiff
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:33 +0100
commit76c696940a1643fd23da2b05e1b78480563bbac2 (patch)
treea3f9bbbdad81d420223bd3fd18a0bcd166f35b33
parent5d84ebe95e4e010e27292716aa45d3fc18200998 (diff)
Handle optional forms: Copy, set executable and expand build_path.
-rw-r--r--.gitignore1
-rw-r--r--Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 7c191a6..5f6f3a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,6 @@
/build/
/content/
/styling/
+/forms/
/config/ikiwiki*.setup
/.ikiwiki*/
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