git: 02a9f38f18 - main - Warn users that 'make run' should be used on subdirectories

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=02a9f38f18db8c0465214ac2bc3a1f5337786610

commit 02a9f38f18db8c0465214ac2bc3a1f5337786610
Author:     Andrey Portnoy <[email protected]>
AuthorDate: 2023-02-17 15:30:44 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2023-02-17 15:30:44 +0000

    Warn users that 'make run' should be used on subdirectories
    
    PR:             269540
---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 699f314739..9b8092079d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,4 +18,7 @@ SUBDIR+=	website
 
 SUBDIR_PARALLEL=	yes
 
+run:
+	@(echo The 'run' target is only valid in a subdirectory; exit 1)
+
 .include <bsd.subdir.mk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.