summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-02-27 18:07:41 +0100
committerJonas Smedegaard <dr@jones.dk>2015-02-27 18:07:41 +0100
commite4d5b92329ed723c925c2c6c3bc76a32b691bd58 (patch)
treef40c23d6f1863c50deb22dad0cb519638d44c500
parentc2a69adfd867989e6801973141709781500198e2 (diff)
Add IKIWIKI_UNDERLAYS for multiple underlays.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b835f64..cff0333 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,9 @@ 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),--set-yaml add_underlays="$$(echo $(IKIWIKI_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)