Archived
3
0

Makefile grooming.

This commit is contained in:
Philippe Pittoli 2023-02-03 05:48:24 +01:00
parent 8c168fdbf8
commit 37b460d52d
2 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ doc: src/ipcd.zig
$(ZIGC) build-exe $(ZIGOPTS) $(ZIGMAKEDOC) $^ $(ZIGC) build-exe $(ZIGOPTS) $(ZIGMAKEDOC) $^
ACCESS_LOGS ?= ./access.log ACCESS_LOGS ?= ./access.log
servedoc: serve-doc:
darkhttpd docs/ --addr 127.0.0.1 --port 35000 --log $(ACCESS_LOGS) darkhttpd docs/ --addr 127.0.0.1 --port 35000 --log $(ACCESS_LOGS)
# You can add your specific instructions there. # You can add your specific instructions there.

View File

@ -16,15 +16,15 @@ stop-tcpd:
run-ipcd: run-ipcd:
-rm /tmp/libipc-run/ipc 2>/dev/null || true -rm /tmp/libipc-run/ipc 2>/dev/null || true
$(VALGRIND) ./ipcd $(VALGRIND) ./bin/ipcd
run-pongd: run-pongd:
-rm /tmp/libipc-run/pong 2>/dev/null || true -rm /tmp/libipc-run/pong 2>/dev/null || true
$(VALGRIND) ./pongd $(VALGRIND) ./bin/pongd
run-tcpd: run-tcpd:
@-rm /tmp/libipc-run/tcp 2>/dev/null || true @-rm /tmp/libipc-run/tcp 2>/dev/null || true
$(VALGRIND) ./tcpd $(VALGRIND) ./bin/tcpd
TCP_SERVICE_ALT ?= 127.0.0.1:9898 TCP_SERVICE_ALT ?= 127.0.0.1:9898
run-tcpd-alternative: run-tcpd-alternative:
@ -38,7 +38,7 @@ run-pong:
@#SERVICE is the service to contact and IPC_NETWORK is the IPCd @#SERVICE is the service to contact and IPC_NETWORK is the IPCd
@#configuration to translate "p" into "pong" (still using UNIX @#configuration to translate "p" into "pong" (still using UNIX
@#sockets on the same computer). @#sockets on the same computer).
SERVICE="$(SERVICE_NAME)" IPC_NETWORK="$(IPC_NETWORK)" $(VALGRIND) ./pong SERVICE="$(SERVICE_NAME)" IPC_NETWORK="$(IPC_NETWORK)" $(VALGRIND) ./bin/pong
run-pong-test-tcpd: run-pong-test-tcpd:
SERVICE="pong" IPC_NETWORK="pong tcp://$(TCP_SERVICE_ALT)/pong" $(VALGRIND) ./pong SERVICE="pong" IPC_NETWORK="pong tcp://$(TCP_SERVICE_ALT)/pong" $(VALGRIND) ./pong