瀏覽代碼

Add dependencies in Makefile

Olivier Marty 8 年之前
父節點
當前提交
78073b6408
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/Makefile

+ 1 - 1
code/Makefile

@@ -9,7 +9,7 @@ run: $(TEST_RUN)
 	@./$<
 	@echo OK
 
-%_test: %_test.cpp
+%_test: %_test.cpp %.cpp
 	@echo Compiling $@...
 	@g++ -o $@ $<