including org files is more complex - e.g. footnotes need to be namespaced to their source file. org does this by prefixing each included files footnotes with a number - but even that is not enough as it doesn't guarantee uniqueness. As I don't have a usecase for it, I'll avoid the additional complexity for now.
34 lines
556 B
Makefile
34 lines
556 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-html-fixtures
|
|
|
|
.PHONY: generate-gh-pages
|
|
generate-gh-pages: build
|
|
./etc/generate-gh-pages
|
|
|
|
.PHONY: generate-html-fixtures
|
|
generate-html-fixtures: build
|
|
./etc/generate-html-fixtures
|