From 7e788fb501b741ae6d98bde9cdb71def935f311d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 3 Feb 2011 23:29:19 +0100 Subject: Suppress ikiwiki git usage when content is off track. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5cceff2..e841b59 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ IKIWIKI_OPTIONS ?= \ -include shared/themes/Makefile +avoid-broken-git = $(shell cd content && git symbolic-ref -q HEAD > /dev/null || echo --no-rcs) + all: build init: submodules content @@ -27,6 +29,6 @@ content: submodules [ -e '$@/index.mdwn' ] || printf '# Hello world!\n\nHello world!\n' > '$@/index.mdwn' build: $(cssfiles) - find config -name *.setup -exec ikiwiki --setup '{}' --rebuild ';' + find config -name *.setup -exec ikiwiki --setup '{}' $(avoid-broken-git) --rebuild ';' .PHONY: all build submodules content -- cgit v1.2.3