diff options
author | Teddy Wing | 2021-03-21 16:52:29 +0100 |
---|---|---|
committer | Teddy Wing | 2021-03-21 17:45:12 +0100 |
commit | b63d509cc16ccd2950eb9770440882c4e238d41e (patch) | |
tree | 8d1e784c05d5d18af4153bd06d7351e9d8aa208e | |
parent | 34bcab5f0aacee38d55d11821073c878ca51e923 (diff) | |
download | Peniquitous-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-- | Makefile | 5 | ||||
-rw-r--r-- | main.js.in (renamed from main.js) | 0 |
2 files changed, 2 insertions, 3 deletions
@@ -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 |