summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-24 15:47:19 -0300
committerEuAndreh <eu@euandre.org>2024-02-24 15:47:19 -0300
commitd064f5ba5cc2fa592c0e7566560b05e9c4ed65dc (patch)
treefdc89ddd55c375e9a4ac7021375bfbaf48d2c0e7 /Makefile
parentsrc/hero.mjs: Add buildServer() (diff)
downloadpapod-d064f5ba5cc2fa592c0e7566560b05e9c4ed65dc.tar.gz
papod-d064f5ba5cc2fa592c0e7566560b05e9c4ed65dc.tar.xz
Normalize how modules import and name each other
Also add a `defaultInterceptors` variable in `src/hero.mjs` to avoid needing to redefine it in every application.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e19a81e..d4719ef 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,8 @@ derived-assets = \
$(manpages) \
side-assets = \
+ tests/hero-0.sock \
+ tests/hero-1.sock \
ircd.sock \
web.sock \
@@ -67,6 +69,11 @@ all: $(derived-assets)
$(manpages): Makefile deps.mk
+rm-sock-files:
+ rm -f tests/hero-0.sock tests/hero-1.sock
+
+tests/js/hero.mjs-check: rm-sock-files
+
.SUFFIXES: .mjs .mjs-check
@@ -130,11 +137,11 @@ uninstall:
run-ircd: all
rm -f ircd.sock
- ./src/papo ircd ircd.sock
+ ./src/bin.mjs ircd ircd.sock
run-web: all
rm -f web.sock
- ./src/papo web web.sock
+ ./src/bin.mjs web web.sock
## Run the web and IRC server locally.
run: all