aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2021-03-21 18:08:40 +0100
committerTeddy Wing2021-03-21 18:17:46 +0100
commit3dd31fad74fe802b1a3a653dfb8a8ff49da30779 (patch)
tree274af97633ae7d2490768850a246ef9df3489097 /Makefile
parent4c6de580bed38efd076a89fed0ae1fbafdb568f0 (diff)
downloadPeniquitous-3dd31fad74fe802b1a3a653dfb8a8ff49da30779.tar.bz2
Makefile: Ensure Mousetrap license is commented
Forgot to comment out the Mousetrap license in the final build file.
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