2020-05-05 07:53:42 +00:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
# Application build
|
2020-05-05 07:53:42 +00:00
|
|
|
vmauth:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-local
|
|
|
|
|
|
|
|
vmauth-race:
|
|
|
|
APP_NAME=vmauth RACE=-race $(MAKE) app-local
|
|
|
|
|
|
|
|
vmauth-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker
|
|
|
|
|
|
|
|
vmauth-pure-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-pure
|
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
# GOOS=linux
|
|
|
|
vmauth-linux-amd64-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-linux-amd64
|
2020-05-05 07:53:42 +00:00
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
vmauth-linux-arm64-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-linux-arm64
|
2020-05-05 07:53:42 +00:00
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
vmauth-linux-arm-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-linux-arm
|
2020-05-05 07:53:42 +00:00
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
# GOOS=darwin
|
2022-02-14 15:28:56 +00:00
|
|
|
vmauth-darwin-amd64-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-darwin-amd64
|
|
|
|
|
|
|
|
vmauth-darwin-arm64-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-darwin-arm64
|
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
# GOOS=windows
|
2022-02-14 15:28:56 +00:00
|
|
|
vmauth-windows-amd64-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-windows-amd64
|
|
|
|
|
2022-07-13 12:42:48 +00:00
|
|
|
# GOARCH=ppc64le
|
|
|
|
vmauth-ppc64le-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-ppc64le
|
|
|
|
|
|
|
|
# GOARCH=386
|
|
|
|
vmauth-386-prod:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-via-docker-386
|
|
|
|
|
|
|
|
# Package build
|
2020-05-05 07:53:42 +00:00
|
|
|
package-vmauth:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker
|
|
|
|
|
|
|
|
package-vmauth-pure:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker-pure
|
|
|
|
|
|
|
|
package-vmauth-amd64:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker-amd64
|
|
|
|
|
|
|
|
package-vmauth-arm:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker-arm
|
|
|
|
|
|
|
|
package-vmauth-arm64:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker-arm64
|
|
|
|
|
|
|
|
package-vmauth-ppc64le:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker-ppc64le
|
|
|
|
|
|
|
|
package-vmauth-386:
|
|
|
|
APP_NAME=vmauth $(MAKE) package-via-docker-386
|
|
|
|
|
|
|
|
publish-vmauth:
|
|
|
|
APP_NAME=vmauth $(MAKE) publish-via-docker
|
|
|
|
|
|
|
|
run-vmauth:
|
|
|
|
APP_NAME=vmauth \
|
2020-05-22 13:38:49 +00:00
|
|
|
DOCKER_OPTS='-v $(shell pwd)/app/vmauth/:/app/vmauth' \
|
|
|
|
ARGS='-auth.config=app/vmauth/example_config.yml' \
|
2020-05-05 07:53:42 +00:00
|
|
|
$(MAKE) run-via-docker
|
|
|
|
|
|
|
|
vmauth-amd64:
|
2020-07-31 10:42:09 +00:00
|
|
|
CGO_ENABLED=1 GOARCH=amd64 $(MAKE) vmauth-local-with-goarch
|
2020-05-05 07:53:42 +00:00
|
|
|
|
|
|
|
vmauth-arm:
|
2020-07-31 10:42:09 +00:00
|
|
|
CGO_ENABLED=0 GOARCH=arm $(MAKE) vmauth-local-with-goarch
|
2020-05-05 07:53:42 +00:00
|
|
|
|
|
|
|
vmauth-arm64:
|
2020-07-31 10:42:09 +00:00
|
|
|
CGO_ENABLED=0 GOARCH=arm64 $(MAKE) vmauth-local-with-goarch
|
2020-05-05 07:53:42 +00:00
|
|
|
|
|
|
|
vmauth-ppc64le:
|
2020-07-31 10:42:09 +00:00
|
|
|
CGO_ENABLED=0 GOARCH=ppc64le $(MAKE) vmauth-local-with-goarch
|
2020-05-05 07:53:42 +00:00
|
|
|
|
|
|
|
vmauth-386:
|
2020-07-31 10:42:09 +00:00
|
|
|
CGO_ENABLED=0 GOARCH=386 $(MAKE) vmauth-local-with-goarch
|
|
|
|
|
|
|
|
vmauth-local-with-goarch:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-local-with-goarch
|
2020-05-05 07:53:42 +00:00
|
|
|
|
|
|
|
vmauth-pure:
|
|
|
|
APP_NAME=vmauth $(MAKE) app-local-pure
|
2021-03-16 18:49:07 +00:00
|
|
|
|
|
|
|
vmauth-windows-amd64:
|
|
|
|
GOARCH=amd64 APP_NAME=vmauth $(MAKE) app-local-windows-with-goarch
|