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