aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-21 16:52:29 +0100
committerTeddy Wing2021-03-21 17:45:12 +0100
commitb63d509cc16ccd2950eb9770440882c4e238d41e (patch)
tree8d1e784c05d5d18af4153bd06d7351e9d8aa208e
parent34bcab5f0aacee38d55d11821073c878ca51e923 (diff)
downloadPeniquitous-b63d509cc16ccd2950eb9770440882c4e238d41e.tar.bz2
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.
-rw-r--r--Makefile5
-rw-r--r--main.js.in (renamed from main.js)0
2 files changed, 2 insertions, 3 deletions
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
diff --git a/main.js b/main.js.in
index 1079a75..1079a75 100644
--- a/main.js
+++ b/main.js.in