diff options
author | Jonas Smedegaard <dr@jones.dk> | 2012-03-01 01:50:03 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2012-03-01 01:50:03 +0100 |
commit | 192f9b20b08f84deea743af5349054378c58bf6d (patch) | |
tree | b055fbde7a4ef655654f6edd02321821270dd8fc /Makefile | |
parent | d8c0ceefa83fd295d6acca607ff8ba3c8c99f69d (diff) |
Individual configfile targets.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -14,16 +14,17 @@ all: build always-make = $(filter -B,$(MAKEFLAGS)) avoid-broken-git = $(shell cd content && git symbolic-ref -q HEAD > /dev/null || echo " --no-rcs") -init: config content +iki_configfiles := $(or $(patsubst %.in,%,$(wildcard config/ikiwiki*.setup.in)),config/ikiwiki.setup) + +init: $(iki_configfiles) content shared/.git: git submodule init git submodule update --init --recursive -config: setupfiles = $(wildcard $@/*.setup) -config: shared/.git - $(if $(setupfiles),,mkdir -p '$@') - $(if $(setupfiles),,ikiwiki $(IKIWIKI_OPTIONS) --dumpsetup '$@/ikiwiki.setup') +$(iki_configfiles): % : %.in shared/.git + $(if $(wildcard config),,mkdir config) + ikiwiki $(IKIWIKI_OPTIONS) --dumpsetup $@ content: notempty = $(wildcard $@/*.mdwn) content: shared/.git |