summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8105fc4..85f3dda 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,10 @@ submodules:
git submodule init
git submodule update --init --recursive
+config: setupfiles = $(wildcard $@/*.setup)
config: submodules
- mkdir -p '$@'
- [ -e '$@/'*.setup ] || ikiwiki $(IKIWIKI_OPTIONS) --dumpsetup '$@/ikiwiki.setup'
+ $(if $(setupfiles),,mkdir -p '$@')
+ $(if $(setupfiles),,ikiwiki $(IKIWIKI_OPTIONS) --dumpsetup '$@/ikiwiki.setup')
content: submodules
mkdir -p '$@'