]> git.cworth.org Git - lmno.games/commitdiff
Makefile: Change permissions on generated .js files to be read-only
authorCarl Worth <cworth@cworth.org>
Tue, 26 May 2020 00:50:54 +0000 (17:50 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 26 May 2020 03:53:38 +0000 (20:53 -0700)
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

index cf1e1d7008e05a1d7ee18e81103c11b4e3a7b722..265297388947d7976315e044a4cb8df13f68915f 100644 (file)
--- 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