diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-02-03 23:29:19 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-02-03 23:29:19 +0100 |
commit | 7e788fb501b741ae6d98bde9cdb71def935f311d (patch) | |
tree | d283630ad40e41d4f56bdb8ed829699987b10d52 /Makefile | |
parent | f85a9c5ad88d1a3c38fbac8d272a284b5661c848 (diff) |
Suppress ikiwiki git usage when content is off track.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |