Created
June 9, 2022 06:37
-
-
Save junjanjon/6ac665645424dc724a4e2bd92f0739d4 to your computer and use it in GitHub Desktop.
gradle のダウンロードを行う Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release_number := 6.1.1 | |
GRADLE_ZIP := gradle-${release_number}-bin.zip | |
GRADLE_URL := https://services.gradle.org/distributions/${GRADLE_ZIP} | |
GRADLE_DIR := gradle-${release_number} | |
GRADLE := gradle-${release_number}/bin/gradle | |
all: download | |
${GRADLE} assemble | |
clean: | |
rm -rf ${GRADLE_ZIP} | |
rm -rf ${GRADLE_DIR} | |
download: clean | |
curl --location --show-error -O --url "${GRADLE_URL}" | |
unzip ${GRADLE_ZIP} | |
rm -rf ${GRADLE_ZIP} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment