git: ac29792cff95 - main - Makefile: enable to run `make index' without output to stdout

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Fri, 18 Oct 2024 16:31:10 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ac29792cff952f8edb9f8318b05189d98fca1c85

commit ac29792cff952f8edb9f8318b05189d98fca1c85
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2024-10-18 16:26:20 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2024-10-18 16:29:05 +0000

    Makefile: enable to run `make index' without output to stdout
    
    e.g.: make -s INDEX_ECHO_1ST=true PORTSDIR=$(pwd) index
    
    PR: 282081
    Approved by: bapt
    Differential Revision: https://reviews.freebsd.org/D47108
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d5c6e039448c..54afa22117a3 100644
--- a/Makefile
+++ b/Makefile
@@ -165,7 +165,7 @@ ${INDEXDIR}/${INDEXFILE}: .PHONY
 		mv ${INDEXDIR}/${INDEXFILE}.tmp ${INDEXDIR}/${INDEXFILE}; \
 	fi; \
 	rm -rf $${tmpdir}; \
-	echo " Done."
+	${INDEX_ECHO_1ST} " Done."
 
 print-index:	${INDEXDIR}/${INDEXFILE}
 	@awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nE-deps:\t%s\nP-deps:\t%s\nF-deps:\t%s\nWWW:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$11, $$12, $$13, $$10); }' < ${INDEXDIR}/${INDEXFILE}