@ 6025dda55b1abdf77b71aa1d3aa49f2f5b7180b5 | history
.PHONY: check test vet fmt bin install clean oracle # The Go module lives in src/; every Go command runs there. GO = cd src && go check: fmt vet test test: $(GO) test ./... vet: $(GO) vet ./... fmt: @unformatted="$$(gofmt -l src)"; \ if [ -n "$$unformatted" ]; then echo "gofmt needed:"; echo "$$unformatted"; exit 1; fi # Build every command (government, govlisp) into ./bin. bin: $(GO) build -o ../bin/ ./cmd/... # Install every command into $(go env GOBIN), or $(go env GOPATH)/bin if unset. install: $(GO) install ./cmd/... clean: rm -rf bin # Check compiled programs against OpenSSL with its 1,000-node policy tree # limit removed, building that OpenSSL the first time (see # scripts/openssl-unlimited.sh). The ordinary tests use whatever openssl is # installed, limit and all. oracle: @bin=$$(scripts/openssl-unlimited.sh) && cd src && GOVERNMENT_OPENSSL=$$bin go test ./lisp2gov -run OpenSSL -count=1 -v