go-org-orgwiki/Makefile
Niklas Fasching ade2a1c875 Improve tests: Add pretty_org fixtures to allow testing pretty printing
Until now we expected the .org file to print back to itself - we can't do that
when the input is not pretty printed already - with the introduction of blocks
with unindented content that will be the case.
2018-12-18 23:54:04 +01:00

34 lines
536 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
generate: generate-gh-pages generate-fixtures
.PHONY: generate-gh-pages
generate-gh-pages: build
./etc/generate-gh-pages
.PHONY: generate-fixtures
generate-fixtures: build
./etc/generate-fixtures