diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-02-27 18:07:41 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-02-27 18:08:05 +0100 |
commit | 6fd62b76bfdfb9771c2ec270e4619191f0a54a7e (patch) | |
tree | 7340229305b50e1c35d1e90e10949eeb6efc45c8 /Makefile | |
parent | f111e49b9f4e862501b283b7c1b3d8a24c0ab4eb (diff) |
Add IKIWIKI_UNDERLAYS for multiple underlays.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |