summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-03-28 10:32:06 -0300
committerEuAndreh <eu@euandre.org>2024-03-28 10:32:06 -0300
commitfb161c790d0c3a0004a6e4fc865b04baf1501cc3 (patch)
tree0c8234d75ecc9ddea086d5d6c0a8fc031ae5d2e9
parentAdapt build and installation (diff)
downloadpapod-fb161c790d0c3a0004a6e4fc865b04baf1501cc3.tar.gz
papod-fb161c790d0c3a0004a6e4fc865b04baf1501cc3.tar.xz
Makefile: Adapt "run-*" virtual targets
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 65787e4..994bdee 100644
--- a/Makefile
+++ b/Makefile
@@ -129,21 +129,25 @@ uninstall:
run-ircd: all
- ./src/bin.mjs ircd ircd.socket
+ rm -f papo.socket
+ ./main.bin papo.socket
-run-wscat: all
- websockify --unix-listen=wscat.socket --unix-target=ircd.socket
+run-wscat:
+ rm -f wscat.socket
+ wscat wscat.socket papo.socket
-run-proxy: all
- lighttpd -Df tests/lighttpd.conf
+run-glaze:
+ rm -f glaze.socket
+ glaze -P '/api/socket:wscat.socket' -P '*:src/static/' glaze.socket
-run-binder: all
- socat tcp-listen:6001,fork,reuseaddr unix:lighttpd.socket
+run-binder:
+ binder localhost:4321 glaze.socket
## Run the IRC server locally and its helper programs.
run: all
- for c in ircd wscat proxy binder; do \
+ for c in ircd wscat glaze binder; do \
$(MAKE) run-$$c & \
+ sleep 0.1; \
done; \
wait