diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-10-11 03:34:12 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-10-11 03:34:12 +0200 |
commit | f52ce3a66f7589796d3f05c3ee89b8331d299550 (patch) | |
tree | e9c35936198470e4d1ba916c6cdf93c49cd307fc /Makefile | |
parent | bf2ed42c116b0dd3dc346ed46cbaa0e8d62ffbe2 (diff) |
Avoid confusing output in build target init.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 '$@' |