github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/Makefile (about) 1 .SILENT: main clean development-environment legal list-packages build fast-test test cleanup-functional-tests-environment functional-tests build-integration-tests tag release release-installer promote release-notes-page check-go check-cli-release-config-path 2 .PHONY: clean development-environment legal list-packages build fast-test test cleanup-functional-tests-environment functional-tests build-integration-tests tag release release-installer promote release-notes-page 3 .DEFAULT_GOAL := main 4 main: # don't change this line; first line is the default target in make <= 3.79 despite .DEFAULT_GOAL 5 echo "Liferay Cloud Platform CLI build tool commands:" 6 echo "development-environment, list-packages, build, fast-test, test, tag, release, promote" 7 clean: 8 rm -f cli* 9 development-environment: 10 ./scripts/development-environment.sh 11 legal: 12 ./scripts/legal.sh 13 list-packages: 14 go list ./... 15 build: 16 go build -o lcp cmd/lcp/*.go 17 fast-test: 18 ./scripts/test.sh --skip-integration-tests 19 test: 20 ./scripts/test.sh 21 cleanup-functional-tests-environment: 22 ./scripts/cleanup-functional-tests-environment.sh 23 functional-tests: 24 ./scripts/functional-tests.sh 25 build-integration-tests: 26 ./scripts/build-integration-tests.sh 27 tag: 28 ./scripts/tag.sh 29 release: check-cli-release-config-path 30 ./scripts/release.sh --config $$WEDEPLOY_CLI_RELEASE_CONFIG_PATH 31 release-installer: 32 ./scripts/release-installer.sh --config $$WEDEPLOY_CLI_RELEASE_CONFIG_PATH 33 promote: check-cli-release-config-path 34 ./scripts/promote.sh --config $$WEDEPLOY_CLI_RELEASE_CONFIG_PATH 35 release-notes-page: 36 go run update/releasenotes/page/page.go 37 check-go: 38 if ! which go &> /dev/null; \ 39 then >&2 echo "Missing dependency: Go is required https://golang.org/"; \ 40 fi; 41 check-cli-release-config-path: 42 if test -z "$$WEDEPLOY_CLI_RELEASE_CONFIG_PATH"; \ 43 then >&2 echo "WEDEPLOY_CLI_RELEASE_CONFIG_PATH environment variable is not set"; \ 44 exit 1; \ 45 fi;