diff options
author | Siri Reiter <siri@pjones.dk> | 2021-03-28 18:58:01 +0200 |
---|---|---|
committer | Siri Reiter <siri@pjones.dk> | 2021-03-28 18:58:01 +0200 |
commit | f04c2dca063a12ed42e4c7fce03498ac2029e3e2 (patch) | |
tree | 24138d14c29f599552bfc458ab87f4d6a64c5655 /Makefile | |
parent | e0df149eaa6008d472d5d2ecdd4af323cb62968f (diff) | |
parent | 81fa34478eb49f4dfd312c6533329cfcb65dd0ca (diff) |
Merge remote-tracking branch 'jones/couchdesign/bullseye-da'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -54,9 +54,16 @@ content: build: $(if $(cssprojects),$(MAKE) $(cssprojects)) + set -e;\ $(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)/build':g" ../build/forms/'{}' ';') + 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/%),\ + cp -f $(htmlstempath).html $(htmlstempath).tmpl;\ + FORMBUILDER_NOHEADER=1 'build/forms/$(path)' > $(htmlstempath).html~;\ + mv -f $(htmlstempath).html~ $(htmlstempath).html;\ + rm $(htmlstempath).tmpl)) .PHONY: all build configfiles |