From d938c8053540d34a00925e0960ac80dbddfc7a26 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 21 Mar 2021 12:44:45 +0100 Subject: 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. --- Makefile | 17 +++++++++++------ 1 file 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 -- cgit v1.2.3