Makefile 355 B

123456789101112
  1. .PHONY: build test all
  2. all: build test
  3. build:
  4. /bin/echo "package zygo" > zygo/gitcommit.go
  5. /bin/echo "func init() { GITLASTTAG = \"$(shell git describe --abbrev=0 --tags)\"; GITLASTCOMMIT = \"$(shell git rev-parse HEAD)\" }" >> zygo/gitcommit.go
  6. cd cmd/zygo; go install .
  7. test:
  8. tests/testall.sh && echo "running 'go test'" && cd zygo && go test -v