From 2edf8be08dc797d15cbbed5a3df0b416d26bf1fe Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 25 May 2020 17:50:54 -0700 Subject: [PATCH] Makefile: Change permissions on generated .js files to be read-only This is a hint to the developer that they shouldn't be eidting these files, (but instead, should be editing the corresponding .jsx file). --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index cf1e1d7..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 -- 2.43.0