aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2021-03-21 17:00:38 +0100
committerTeddy Wing2021-03-21 17:45:47 +0100
commit1e7a1cb1bf70736cf1673faa1ebc4119cb058771 (patch)
tree63807acf0c3000f777ff8794e3eda60c0c365368 /Makefile
parentdad4ca866f7c6a7b3795759a0263c33ffbba2cca (diff)
downloadPeniquitous-1e7a1cb1bf70736cf1673faa1ebc4119cb058771.tar.bz2
Makefile: Add a new `peniquitous.user.js` target
Don't need Browserify. Just concatenate the user script header and the compiled `main.js`. Rebuild the `peniquitous.user.js` user script file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 59a59c2..6f5ce16 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,9 @@ build/main.js: main.js.in $(addprefix build/,$(IMPORTS_BASENAME))
$< \
> $@
+peniquitous.user.js: build/main.js userscript-header.txt
+ cat userscript-header.txt build/main.js > $@
+
.PHONY: clean
clean:
rm -rf build