From 67ebdd764b3a19809e16d19741aa9c9416898b6a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 20 Apr 2011 17:00:11 +0200 Subject: Only force-rebuild ikiwiki when using make always-make option -B. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2cf2fe9..be53be3 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3