Automate the documentation server.

This commit is contained in:
Matt T. Proud 2012-11-25 16:04:58 +01:00
parent 6072143505
commit 11ec53f1b5
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
TEST_ARTIFACTS = prometheus
TEST_ARTIFACTS = prometheus search_index
all: test
@ -20,4 +20,10 @@ clean:
format:
find . -iname '*.go' | grep -v generated | xargs -n1 gofmt -w
search_index:
godoc -index -write_index -index_files='search_index'
documentation: search_index
godoc -http=:6060 -index -index_files='search_index'
.PHONY: build clean format test