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
$(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