summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-10-11 03:34:12 +0200
committerJonas Smedegaard <dr@jones.dk>2011-10-11 03:34:12 +0200
commitf52ce3a66f7589796d3f05c3ee89b8331d299550 (patch)
treee9c35936198470e4d1ba916c6cdf93c49cd307fc /Makefile
parentbf2ed42c116b0dd3dc346ed46cbaa0e8d62ffbe2 (diff)
Avoid confusing output in build target init.
Diffstat (limited to 'Makefile')
-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 '$@'