]> git.cworth.org Git - lmno.games/commitdiff
Makefile: Don't remove write permission from .js build artifacts
authorCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 04:05:03 +0000 (21:05 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 04:05:03 +0000 (21:05 -0700)
The intent behind this was to act as a clue to the developer that they
shouldn't edit the .js file, but it caused a problem that subsequent
build would fail because the output files were read-only. So we give
up on this idea.

Makefile

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