aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 28077ce..71c081c 100644
--- a/Makefile
+++ b/Makefile
@@ -22,11 +22,18 @@ all: peniquitous.user.js
build:
mkdir -p $@
+build/mousetrap-license.js: node_modules/mousetrap/LICENSE
+ sed \
+ -e 's,^\(.\),// \1,' \
+ -e 's,^$$,//,' \
+ $< \
+ > $@
+
build/key-event.js: node_modules/mousetrap/tests/libs/key-event.js \
-node_modules/mousetrap/LICENSE \
+build/mousetrap-license.js \
| build
sed -e '/^(function/d' -e '$$d' $< > $@
- cat node_modules/mousetrap/LICENSE $@ > $@.tmp
+ cat build/mousetrap-license.js $@ > $@.tmp
mv $@.tmp $@
build/peniquitous.js: peniquitous.js | build