X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=Makefile;h=4132e9652cea38de0140aa220721beea3ad5a035;hp=265297388947d7976315e044a4cb8df13f68915f;hb=f8b6dc7aef51ccc82d163f015612c7640f0be365;hpb=2edf8be08dc797d15cbbed5a3df0b416d26bf1fe diff --git a/Makefile b/Makefile index 2652973..4132e96 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,6 @@ react-dom.js: deps/react-dom.production.min.js export BABEL_ENV=production %.js: %.jsx $(call quiet,BABEL) $^ --out-file $@ - @chmod a-w $@ else react.js: deps/react.development.js $(call quiet,CP) $^ $@ @@ -52,7 +51,6 @@ react-dom.js: deps/react-dom.development.js export BABEL_ENV=development %.js: %.jsx $(call quiet,BABEL) $^ --out-file $@ - @chmod a-w $@ endif # The user has not set any verbosity, default to quiet mode and inform the @@ -77,9 +75,13 @@ deps: $(REACT_DOWNLOADS) $(call quiet,SHA512) deps/*.sha512 DOWNLOAD=wget $(WGET_VERBOSE_FLAGS) -nc -P deps -deps/%.js: - $(call quiet,DOWNLOAD) https://unpkg.com/react@16/umd/$@ - $(call quiet,SHA512) $(patsubst %,%.sha512,$@) +deps/react.%.js: + $(call quiet,DOWNLOAD) https://unpkg.com/react@16/umd/$(@:deps/%=%) + $(call quiet,SHA512) $(@:%=%.sha512) + +deps/react-dom.%.js: + $(call quiet,DOWNLOAD) https://unpkg.com/react-dom@16/umd/$(@:deps/%=%) + $(call quiet,SHA512) $(@:%=%.sha512) deploy: rm -rf .deploy-source