From 4531cfbb8cfc59bba9abdf659ebfb1f9e6115e0b Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 8 Jun 2025 23:27:15 +0200 Subject: [PATCH] build(make test): update the makefile for irssi propose --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d5533d0..61b9d0a 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: sben-tay +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/05/02 15:40:00 by rparodi #+# #+# # -# Updated: 2025/06/08 21:10:25 by sben-tay ### ########.fr # +# Updated: 2025/06/08 23:06:16 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -25,6 +25,7 @@ SESSION = test-irc # Sources SRC = sources/channel/channel.cpp \ + sources/commands/cap.cpp \ sources/commands/commands.cpp \ sources/commands/invite.cpp \ sources/commands/join.cpp \ @@ -115,8 +116,6 @@ test: debug 'bash -lc "nc localhost $(PORT) || exec yes \"netcat exit code: $?\""' @tmux attach -t $(SESSION) - # @tmux split-window -h -p 70 -t $(SESSION):0 \ - # 'bash -lc "irssi -c localhost -p $(PORT) -w irc || exec yes \"irssi exit code: $?\""' run: all @printf '$(GREY) now running with\n\t- Port:\t\t$(GREEN)$(PORT)$(GREY)\n\t- Password:\t$(GREEN)irc$(END)\n' @if tmux has-session -t $(SESSION) 2>/dev/null; then \ @@ -124,10 +123,13 @@ run: all fi @tmux new-session -d -s $(SESSION) \ 'bash -lc "./$(NAME) $(PORT) irc; exec bash"' - @tmux split-window -v -p 50 -t $(SESSION):0 \ + @tmux split-window -h -p 70 -t $(SESSION):0 \ + 'bash -lc "irssi -c localhost -p $(PORT) -w irc || exec yes \"irssi exit code: $?\""' + @tmux split-window -v -p 50 -t $(SESSION):0.1 \ 'bash -lc "nc localhost $(PORT) || exec yes \"netcat exit code: $?\""' @tmux attach -t $(SESSION) + # Header header: @clear