Skip to content

Commit 9ef7c16

Browse files
committed
Use the fact that tests end in _test in pattern
1 parent 003f4aa commit 9ef7c16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

make/tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test/%$(EXE) : test/%.o $(GTEST)/src/gtest_main.cc $(GTEST)/src/gtest-all.o $(MP
3434
##
3535
ifneq ($(filter test/%,$(MAKECMDGOALS)),)
3636
-include $(patsubst %$(EXE),%.d,$(filter test/%,$(MAKECMDGOALS)))
37-
.INTERMEDIATE: $(patsubst %$(EXE),%.o,$(filter-out test/%.d test/%.o,$(filter test/%,$(MAKECMDGOALS))))
37+
.INTERMEDIATE: $(patsubst test/%_test$(EXE),test/%_test.o,$(filter test/%_test$(EXE),$(MAKECMDGOALS)))
3838
endif
3939

4040
##

0 commit comments

Comments
 (0)