From 1bc0ba04914888116bd2d76f880d3f22b11f792c Mon Sep 17 00:00:00 2001 From: Hojun-Cho Date: Tue, 18 Aug 2026 16:18:43 +0900 Subject: [PATCH] build: the parent make knows what the daemon is built from ../strans listed no prerequisites, so once the file existed make held it up to date whatever changed under it: touch strans.c, run make -C tests check-live, and it planned no compile at all and smoked a stale daemon. The sibling rule for the GTK module answered it by naming three of its sources, which is the parent Makefile's list copied and already short of gtk/Makefile. Neither list is needed -- ask the parent. Co-Authored-By: Claude Opus 5 (1M context) --- tests/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 68f5540..9e4b719 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -89,7 +89,8 @@ gtk_live_test: gtk_live_test.c $(LIVESRC) ../ipc.c ../ipc.h $(LDFLAGS) -o $@ gtk_live_test.c live.c ../ipc.c $(GTK_LIBS) \ -pthread $(LDLIBS) -../gtk/im-strans.so: ../gtk/main.c ../ipc.c ../ipc.h +# The parent make knows what these are built from; always ask it. +../gtk/im-strans.so: $(MAKE) -C ../gtk ../strans: @@ -145,4 +146,5 @@ unit_%.o: ../%.c ../dat.h ../fn.h ../ipc.h clean: rm -f $(OBJS) $(PROG) $(STRESS) $(LIVE) -.PHONY: all check check-live check-stress test clean +.PHONY: all check check-live check-stress test clean \ + ../strans ../gtk/im-strans.so