浏览代码

[Makefile] Don't include generated dependencies on clean

If we include dependencies in a Makefile for which a target exists
(currently this only affects the manifest.sgx.d targets) then Make will
generate them and then clean will delete them ... so just don't include
them on clean.
Simon Gaiser 6 年之前
父节点
当前提交
d97db4a1e2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Pal/test/Makefile

+ 2 - 0
Pal/test/Makefile

@@ -63,7 +63,9 @@ else
 $(executables):
 endif
 
+ifeq ($(filter clean,$(MAKECMDGOALS)),)
 -include $(addsuffix .d, $(executables)) $(addsuffix .i.d, $(executables)) $(addsuffix .s.d, $(executables))
+endif
 
 .PHONY: clean
 clean: