diff options
| author | Teddy Wing | 2021-03-20 23:26:52 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-21 17:45:06 +0100 |
| commit | da0d35ac87e7c436db486036a2dba26cd039c567 (patch) | |
| tree | e771eb694e8cd47972de11c2b634224f08c3cecd /Makefile | |
| parent | 2eafde8cca885987c12dfeb7aaed815c11a93ebc (diff) | |
| download | Peniquitous-da0d35ac87e7c436db486036a2dba26cd039c567.tar.bz2 | |
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.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. + + +BROWSERIFY := ./node_modules/.bin/browserify + +all: peniquitous.user.js + +peniquitous.user.js: main.js peniquitous.js + $(BROWSERIFY) \ + --outfile $@ \ + $< |
