From ea85a54fef82aaa760460c1dea8826bba1ed9597 Mon Sep 17 00:00:00 2001 From: MinetaS Date: Wed, 25 Jun 2025 21:33:47 +0900 Subject: [PATCH] Fix trivial errors in Makefile 1. Remove "default" rule as "default" has no special meaning as a rule name. Make runs the very first rule whose name doesn't begin with a dot (which is "help" currently). 2. Make "format" rule not update dependencies. closes https://github.com/official-stockfish/Stockfish/pull/6140 No functional change --- src/Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index 87bf4d69..50bb2082 100644 --- a/src/Makefile +++ b/src/Makefile @@ -996,10 +996,6 @@ net: format: $(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file -# default target -default: - help - ### ========================================================================== ### Section 5. Private Targets ### ========================================================================== @@ -1125,6 +1121,6 @@ icx-profile-use: .depend: $(SRCS) -@$(CXX) $(DEPENDFLAGS) -MM $(SRCS) > $@ 2> /dev/null -ifeq (, $(filter $(MAKECMDGOALS), help strip install clean net objclean profileclean config-sanity)) +ifeq (, $(filter $(MAKECMDGOALS), help strip install clean net objclean profileclean format config-sanity)) -include .depend endif