pgcli/Makefile

20 lines
733 B
Makefile

OUT_DIR=bin
PROG_NAME_PGPF=pgpf
build-mac-arm64-pgpf:
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o ./$(OUT_DIR)/$(PROG_NAME_PGPF)_macos_arm64 main.go
build-mac-amd64-pgpf:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./$(OUT_DIR)/$(PROG_NAME_PGPF)_macos_amd64 main.go
build-linux-amd64-pgpf:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./$(OUT_DIR)/$(PROG_NAME_PGPF)_linux_amd64 main.go
build-windows-amd64-pgpf:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./$(OUT_DIR)/$(PROG_NAME_PGPF)_windows_amd64.exe main.go
build-all: build-mac-arm64-pgpf build-mac-amd64-pgpf build-linux-amd64-pgpf build-windows-amd64-pgpf
lint:
golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 -v ./...