]> git.sesse.net Git - stockfish/commitdiff
Fix a dependency bug
authorMinetaS <skdty87@gmail.com>
Tue, 20 Dec 2022 07:01:05 +0000 (16:01 +0900)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 20 Dec 2022 07:14:19 +0000 (08:14 +0100)
Instead of allowing .depend for specific build-related targets, filter
non-build-related targets (i.e. help, clean) so that other targets can
normally execute .depend target.

closes https://github.com/official-stockfish/Stockfish/pull/4293

No functional change

src/Makefile

index bcf0abdf5ee986ed6d7c17c5cf24193c3d9159b4..500c100675d0e8436355606f53e0b6cea38d1800 100644 (file)
@@ -1009,6 +1009,6 @@ icc-profile-use:
 .depend: $(SRCS)
        -@$(CXX) $(DEPENDFLAGS) -MM $(SRCS) > $@ 2> /dev/null
 
-ifneq (, $(filter $(MAKECMDGOALS), build profile-build))
+ifeq (, $(filter $(MAKECMDGOALS), help strip install clean net objclean profileclean config-sanity))
 -include .depend
 endif