From d064f5ba5cc2fa592c0e7566560b05e9c4ed65dc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 24 Feb 2024 15:47:19 -0300 Subject: 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. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3