From 20b02264620397eacf4e43736ec7f7c48a9a7068 Mon Sep 17 00:00:00 2001 From: MinetaS Date: Tue, 20 Dec 2022 16:01:05 +0900 Subject: [PATCH] Fix a dependency bug 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index bcf0abdf..500c1006 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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