After changing something the fixtures need to be updated to reflect the new output. This just moves those steps from my bash history to make.
31 lines
487 B
Makefile
31 lines
487 B
Makefile
.PHONY: default
|
|
default: test
|
|
|
|
.PHONY: install
|
|
install:
|
|
go get -t ./...
|
|
|
|
.PHONY: build
|
|
build: install
|
|
go build .
|
|
|
|
.PHONY: test
|
|
test: install
|
|
go test ./... -v
|
|
|
|
.PHONY: setup
|
|
setup:
|
|
git config core.hooksPath etc/githooks
|
|
|
|
case=example
|
|
.PHONY: render
|
|
render:
|
|
go run main.go org/testdata/$(case).org html | html2text
|
|
|
|
.PHONY: generate-gh-pages
|
|
generate-gh-pages: build
|
|
./etc/generate-gh-pages
|
|
|
|
.PHONY: generate-html-fixtures
|
|
generate-html-fixtures: build
|
|
./etc/generate-html-fixtures
|