diff options
| author | Teddy Wing | 2021-03-21 16:55:10 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-21 17:45:40 +0100 |
| commit | 8b9171a644c3b6a6479dd29bca0f4218d5333ce3 (patch) | |
| tree | 13955447ea828ffb9251a4ba45c43fd381c3f8dd /Makefile | |
| parent | b63d509cc16ccd2950eb9770440882c4e238d41e (diff) | |
| download | Peniquitous-8b9171a644c3b6a6479dd29bca0f4218d5333ce3.tar.bz2 | |
Remove Browserify
We're no longer using the `require` imports to include JS files. Instead
we have a template string process. Not as robust, but easier to fit what
the final user script needs to be.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -14,31 +14,11 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. -BROWSERIFY := ./node_modules/.bin/browserify - IMPORTS := peniquitous.js lib/mousetrap/tests/libs/key-event.js IMPORTS_BASENAME := $(notdir $(IMPORTS)) all: peniquitous.user.js -# peniquitous.user.js: peniquitous.js lib/mousetrap/tests/libs/key-event.js userscript-header.txt -# sed -e '1d' -e '$$d' \ -# lib/mousetrap/tests/libs/key-event.js \ -# > key-event.js -# -# cat \ -# userscript-header.txt \ -# key-event.js \ -# peniquitous.js \ -# > $@ -# -# rm key-event.js - -# build/?: $(IMPORTS) -# sed -e '/^(function/d' -e '$$d' file -# -# build/main.js: build/*.js - build: mkdir -p $@ @@ -57,14 +37,6 @@ build/main.js: main.js.in $(addprefix build/,$(IMPORTS_BASENAME)) $< \ > $@ -peniquitous.user.js: main.js peniquitous.js userscript-header.txt - $(BROWSERIFY) \ - --outfile $@ \ - $< - - cat userscript-header.txt $@ > "$@.tmp" - mv "$@.tmp" $@ - .PHONY: clean clean: rm -rf build |
