diff options
author | Teddy Wing | 2021-03-21 12:44:45 +0100 |
---|---|---|
committer | Teddy Wing | 2021-03-21 17:45:12 +0100 |
commit | d938c8053540d34a00925e0960ac80dbddfc7a26 (patch) | |
tree | cd3e8e58022a7bac7fcb39960538a276e2633b3f | |
parent | cc6a08633690fce44b97f9616ca5faa689d1def5 (diff) | |
download | Peniquitous-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-- | Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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 |