X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=Makefile;h=265297388947d7976315e044a4cb8df13f68915f;hp=4ef4b4d72078cdd7e01903a37484a4317a48d168;hb=b7235e121a198fa718dae1e311d5e35151245f99;hpb=b5bcbc45f19ee068478edb73b48bc7194e582da8 diff --git a/Makefile b/Makefile index 4ef4b4d..2652973 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ 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) $^ $@ @@ -51,6 +52,7 @@ 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 @@ -82,6 +84,8 @@ deps/%.js: 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 \