aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-21 12:44:45 +0100
committerTeddy Wing2021-03-21 17:45:12 +0100
commitd938c8053540d34a00925e0960ac80dbddfc7a26 (patch)
treecd3e8e58022a7bac7fcb39960538a276e2633b3f
parentcc6a08633690fce44b97f9616ca5faa689d1def5 (diff)
downloadPeniquitous-d938c8053540d34a00925e0960ac80dbddfc7a26.tar.bz2
Makefile: Try concatenating instead of Browserify
The keyboard event simulation didn't work. Tried getting rid of Browserify and including the JS all in one file, but that didn't make a difference. Committing this for reference.
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e08944a..4bc90c8 100644
--- a/Makefile
+++ b/Makefile
@@ -18,10 +18,15 @@ BROWSERIFY := ./node_modules/.bin/browserify
all: peniquitous.user.js
-peniquitous.user.js: peniquitous.js userscript-header.txt
- $(BROWSERIFY) \
- --outfile $@ \
- $<
+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 $@ > "$@.tmp"
- mv "$@.tmp" $@
+ cat \
+ userscript-header.txt \
+ key-event.js \
+ peniquitous.js \
+ > $@
+
+ rm key-event.js