go-org-orgwiki/Makefile
Niklas Fasching 9826aa2143 Add make target to automatically regenerate html fixtures
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.
2018-12-11 15:42:41 +01:00

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