diff options
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 '$@' |