summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dd996fe..1fb0d33 100644
--- a/Makefile
+++ b/Makefile
@@ -32,10 +32,13 @@ shared/.git:
git submodule init
git submodule update --init --recursive
+config/ikiwiki.setup.in:
+ $(if $(wildcard config),,mkdir config)
+ $(if $(wildcard config/ikiwiki.setup.in),,touch config/ikiwiki.setup.in)
+
configfiles: $(iki_configfiles)
$(iki_configfiles): iki_flavor = $(if $(filter config/ikiwiki-%.setup,$@),$(@:config/ikiwiki-%.setup=%))
$(iki_configfiles): % : %.in
- $(if $(wildcard config),,mkdir config)
ikiwiki $(IKIWIKI_DEFAULTS) $(patsubst %,--setup %,$(wildcard $<)) $(IKIWIKI_OPTIONS) --dumpsetup $@
content: notempty = $(wildcard $@/*.mdwn)