Parcourir la source

[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 il y a 6 ans
Parent
commit
d97db4a1e2
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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: