diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-02-26 17:47:19 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-02-26 17:48:23 +0100 |
commit | 3c57fd5713d08ef2b4b29ff15775f57421bf8498 (patch) | |
tree | ccd61034d676f0e5f5914c29ae893b15fe491068 | |
parent | d54c69f1c554e4b1434f208b33fcde9c553e3c63 (diff) |
Handle optional forms: Copy, set executable and expand build_path.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -2,5 +2,6 @@ /build/ /content/ /styling/ +/forms/ /config/ikiwiki*.setup /.ikiwiki*/ @@ -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 |