]> git.hungrycats.org Git - bees/commitdiff
test: have clean remove the non-PROGRAMS build products
authorZygo Blaxell <bees@furryterror.org>
Thu, 9 Jul 2026 15:58:01 +0000 (11:58 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 10 Oct 2026 19:00:03 +0000 (15:00 -0400)
clean removes everything derived from $(PROGRAMS), plus
test-bees-plan-lib.o by name.  It misses the rest of what the explicit
rules produce: the two generated .dep files, and the bench object and
binary.  A .dep left behind is the worse of the two, since it is
`-include`d on the next build and names header paths from the tree it
was generated in.

Name them all.

Assisted-by: Claude-Code:claude-opus-4-8
Assisted-by: Claude-Code:claude-opus-5
test/Makefile

index 4c7f0362fc2ea64ab5fb8fd81266c79d0936fc40..be7d04d801b8cb76ebdb242e65b6defe1276e061 100644 (file)
@@ -200,4 +200,6 @@ $(REPL_TESTS): %: %.o $(REPL_OBJS) ../makeflags Makefile ../lib/libcrucible.a
        $(CXX) $(BEES_CXXFLAGS) $(BEES_LDFLAGS) -o $@ $< $(REPL_OBJS) $(LIBS)
 
 clean:
-       rm -fv $(PROGRAMS:%=%.o) $(PROGRAMS:%=%.txt) $(PROGRAMS) test-bees-plan-lib.o
+       rm -fv $(PROGRAMS:%=%.o) $(PROGRAMS:%=%.txt) $(PROGRAMS) \
+               test-bees-plan-lib.o test-bees-plan-lib.dep \
+               bench-bees-plan.o bench-bees-plan bench-bees-plan.dep