Makefile 284 B

1234567891011121314151617
  1. export GOPATH := $(abspath ../..)
  2. export NEX := $(abspath ../../bin/nex)
  3. all: $(NEX) test
  4. $(NEX): main.go nex.go
  5. go fmt nex
  6. go install nex
  7. test: $(NEX) $(shell find test -type f)
  8. go fmt nex nex/test
  9. go test nex nex/test
  10. clean:
  11. rm -f $(NEX)
  12. .PHONY: all test clean