From da0d35ac87e7c436db486036a2dba26cd039c567 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 Mar 2021 23:26:52 +0100 Subject: Build into a Greasemonkey user script Add Browserify to enable imports. Remove the script insertion code since it isn't necessary for a user script. --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1058ae6 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +# Copyright (c) 2021 Teddy Wing +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +BROWSERIFY := ./node_modules/.bin/browserify + +all: peniquitous.user.js + +peniquitous.user.js: main.js peniquitous.js + $(BROWSERIFY) \ + --outfile $@ \ + $< -- cgit v1.2.3