summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-08-01 12:06:36 +0200
committerJonas Smedegaard <dr@jones.dk>2012-08-01 12:06:36 +0200
commit3dfb101d32c005d1d5c7c9e41e22031b2b7080ed (patch)
treec40c1957ff984e8cd9a4660d13b419ef8e5889ab
parentf2918c62df3a019a5ad3b6a076d8f45a5b48b9c8 (diff)
Fix bootstrapping with no initial ikiwiki config.
-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)