diff options
author | DarkFreedman <misterdark@mail.ru> | 2019-10-04 13:25:04 +0300 |
---|---|---|
committer | DarkFreedman <misterdark@mail.ru> | 2019-10-04 13:25:04 +0300 |
commit | 6b0f0dee0dd42aebd05ef612bc8069361d06e487 (patch) | |
tree | 6ab44fb49bf3359e3803181dcd3ab9e1df6a65e4 /Makefile | |
parent | 2e803db13067e702208818c79d70bd0ad1b13370 (diff) | |
parent | 291a9758a2b6dad177c43ee435a68dcd46959496 (diff) |
Merge remote-tracking branch 'upstream/master'
Update to latest version
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..90624c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +all : documentation + +documentation : doc/index.html doc.go README.md + +cov : all + go test -v -coverprofile=coverage && go tool cover -html=coverage -o=coverage.html + +check : + golint . + go vet -all . + gofmt -s -l . + goreportcard-cli -v | grep -v cyclomatic + +README.md : doc/document.md + pandoc --read=markdown --write=gfm < $< > $@ + +doc/index.html : doc/document.md doc/html.txt + pandoc --read=markdown --write=html --template=doc/html.txt \ + --metadata pagetitle="GoFPDF Document Generator" < $< > $@ + +doc.go : doc/document.md doc/go.awk + pandoc --read=markdown --write=plain $< | awk --assign=package_name=gofpdf --file=doc/go.awk > $@ + gofmt -s -w $@ + +build : + go build -v + +clean : + rm -f coverage.html coverage doc/index.html doc.go README.md |