Procházet zdrojové kódy

[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 před 6 roky
rodič
revize
d97db4a1e2
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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: