define build GOOS=$(1) GOARCH=$(2) \ go build \ -o release/$(1)-$(2)/datashake endef .PHONY: all all: $(call build,linux,amd64) .PHONY: clean clean: $(RM) -r release