X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=Makefile;h=4132e9652cea38de0140aa220721beea3ad5a035;hp=4ef4b4d72078cdd7e01903a37484a4317a48d168;hb=f8b6dc7aef51ccc82d163f015612c7640f0be365;hpb=b5bcbc45f19ee068478edb73b48bc7194e582da8 diff --git a/Makefile b/Makefile index 4ef4b4d..4132e96 100644 --- a/Makefile +++ b/Makefile @@ -75,13 +75,19 @@ 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 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 \