diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e47ce13 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.PHONY: clean + +REPO= github.com/ca-gip/dploy +NAME= dploy + +dependency: + go mod download + +test: dependency + GOARCH=amd64 go test ./internal/services + +linux: test + GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -v -o ./build/linux_amd64 -i $(GOPATH)/src/$(REPO)/main.go + +darwin: test + GOOS=darwin CGO_ENABLED=0 GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -v -o ./build/darwin_amd64 -i $(GOPATH)/src/$(REPO)/main.go + +build: linux darwin \ No newline at end of file