summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSiri Reiter <siri@jones.dk>2017-02-05 21:01:55 +0100
committerSiri Reiter <siri@jones.dk>2017-02-05 21:04:16 +0100
commit74469d030df5ef0cab6f00bec792e6300e080151 (patch)
treeac2fb15b7d30a9e270f62f50ee6de9f9b95645f9 /Makefile
parente9db1dd938911007d3f11f2793510c4f14401f5e (diff)
parent8718431b6266fe18fabf6c290a397b1e23b45562 (diff)
Merge remote-tracking branch 'iki/plaintitle-da'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b835f64..4217275 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,13 @@ config/ikiwiki.setup.in:
configfiles: $(iki_configfiles)
$(iki_configfiles): iki_flavor = $(if $(filter config/ikiwiki-%.setup,$@),$(@:config/ikiwiki-%.setup=%))
$(iki_configfiles): % : %.in
- ikiwiki $(IKIWIKI_DEFAULTS) $(patsubst %,--setup %,$(wildcard $<)) --dumpsetup $@
+ ikiwiki $(IKIWIKI_DEFAULTS) \
+ $(if $(IKIWIKI_UNDERLAYS)$(IKIWIKI_SHARED_UNDERLAYS),\
+ --set-yaml add_underlays="$$(echo $(strip \
+ $(IKIWIKI_UNDERLAYS) \
+ $(IKIWIKI_SHARED_UNDERLAYS)) \
+ | perl -pe 's/\s+/\n/g;s/^/- /gm')") \
+ $(patsubst %,--setup %,$(wildcard $<)) --dumpsetup $@
perl -i -pe '$$s=$$ENV{'CURDIR'}; s/\@CURDIR\@/$$s/g' $@
content: notempty = $(wildcard $@/*.mdwn)