X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=Makefile;h=4132e9652cea38de0140aa220721beea3ad5a035;hp=4b0b4c462e75a1ef55d432d9a9f2297180abf50b;hb=f8b6dc7aef51ccc82d163f015612c7640f0be365;hpb=265bf0229c5805d5e5823240f6faadd2df902856 diff --git a/Makefile b/Makefile index 4b0b4c4..4132e96 100644 --- a/Makefile +++ b/Makefile @@ -69,25 +69,25 @@ endif quiet ?= $($(word 1, $(1))) WGET_VERBOSE_FLAGS ?= --no-verbose -checksums: $(REACT_DOWNLOADS) - sha512sum --strict -c checksums.sha512 +SHA512=sha512sum --strict -c +.PHONY: deps +deps: $(REACT_DOWNLOADS) + $(call quiet,SHA512) deps/*.sha512 DOWNLOAD=wget $(WGET_VERBOSE_FLAGS) -nc -P deps -deps/react.development.js: - $(call quiet,DOWNLOAD) https://unpkg.com/react@16/umd/react.development.js +deps/react.%.js: + $(call quiet,DOWNLOAD) https://unpkg.com/react@16/umd/$(@:deps/%=%) + $(call quiet,SHA512) $(@:%=%.sha512) -deps/react-dom.development.js: - $(call quiet,DOWNLOAD) https://unpkg.com/react-dom@16/umd/react-dom.development.js - -deps/react.production.min.js: - $(call quiet,DOWNLOAD) https://unpkg.com/react@16/umd/react.production.min.js - -deps/react-dom.production.min.js: - $(call quiet,DOWNLOAD) https://unpkg.com/react-dom@16/umd/react-dom.production.min.js +deps/react-dom.%.js: + $(call quiet,DOWNLOAD) https://unpkg.com/react-dom@16/umd/$(@:deps/%=%) + $(call quiet,SHA512) $(@:%=%.sha512) deploy: rm -rf .deploy-source git clone . .deploy-source + cp deps/*.js .deploy-source/deps + make -C .deploy-source deps make -C .deploy-source LMNO_BUILD=production rm -rf .deploy-source/.git (cd .deploy-source; rsync -avz \