aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2021-03-20 23:45:32 +0100
committerTeddy Wing2021-03-21 17:45:12 +0100
commitcc6a08633690fce44b97f9616ca5faa689d1def5 (patch)
tree202199978e8f87a60a051268407356e4b6a7fb89 /Makefile
parentda0d35ac87e7c436db486036a2dba26cd039c567 (diff)
downloadPeniquitous-cc6a08633690fce44b97f9616ca5faa689d1def5.tar.bz2
Add user script header
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1058ae6..e08944a 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,10 @@ BROWSERIFY := ./node_modules/.bin/browserify
all: peniquitous.user.js
-peniquitous.user.js: main.js peniquitous.js
+peniquitous.user.js: peniquitous.js userscript-header.txt
$(BROWSERIFY) \
--outfile $@ \
$<
+
+ cat userscript-header.txt $@ > "$@.tmp"
+ mv "$@.tmp" $@