LDFLAGS = '\ -X "main.versionGit=$(shell git describe --long --tags --dirty --always)" \ -X "main.versionGo=$(shell go version)" \ ' all: safcm safcm: go fmt ./... cd cmd/safcm-remote && ./build.sh go build -ldflags $(LDFLAGS) -race ruderich.org/simon/safcm/cmd/safcm @# For proper permissions after initial clone with a strict umask cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null test: go vet ./... go test -race ./... clean: rm -rf remote/helpers/ rm -f safcm .PHONY: all test clean safcm