From b63d509cc16ccd2950eb9770440882c4e238d41e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 21 Mar 2021 16:52:29 +0100 Subject: Rename `main.js` to `main.js.in` Since this file has template variables, it's not a real executable JavaScript file. Add `.in` to the end to make it clear it needs to be built with Make. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c557f76..fcc0355 100644 --- a/Makefile +++ b/Makefile @@ -48,14 +48,13 @@ build/key-event.js: lib/mousetrap/tests/libs/key-event.js | build build/peniquitous.js: peniquitous.js | build sed -e '/^(function/d' -e '$$d' $< > $@ -# TODO: Swap main file names -main.js.in: $(addprefix build/,$(IMPORTS_BASENAME)) +build/main.js: main.js.in $(addprefix build/,$(IMPORTS_BASENAME)) sed \ -e '/\$$KEY_EVENT/r build/key-event.js' \ -e '/\$$KEY_EVENT/d' \ -e '/\$$PENIQUITOUS/r build/peniquitous.js' \ -e '/\$$PENIQUITOUS/d' \ - main.js \ + $< \ > $@ peniquitous.user.js: main.js peniquitous.js userscript-header.txt -- cgit v1.2.3