diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-04-20 17:00:11 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-04-20 17:00:11 +0200 |
commit | 67ebdd764b3a19809e16d19741aa9c9416898b6a (patch) | |
tree | 5edfeb65b6940bc273ff030da5311c3f243a4486 /Makefile | |
parent | a7adf74c4fa82c5a46f039c56399d17f6dbc9122 (diff) |
Only force-rebuild ikiwiki when using make always-make option -B.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ IKIWIKI_OPTIONS ?= \ -include shared/themes/Makefile +always-make = $(filter -B,$(MAKEFLAGS)) avoid-broken-git = $(shell cd content && git symbolic-ref -q HEAD > /dev/null || echo --no-rcs) all: build @@ -30,6 +31,6 @@ content: submodules [ -e '$@/index.mdwn' ] || printf '# Hello world!\n\nHello world!\n' > '$@/index.mdwn' build: $(cssfiles) - find config -name *.setup -exec ikiwiki --setup '{}' $(avoid-broken-git) --rebuild ';' + find config -name *.setup -exec ikiwiki --setup '{}' $(avoid-broken-git) $(if $(always-make),--rebuild) ';' .PHONY: all build submodules content |