git: 02a9f38f18 - main - Warn users that 'make run' should be used on subdirectories
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Feb 2023 15:31:49 UTC
The branch main has been updated by carlavilla:
URL: https://cgit.FreeBSD.org/doc/commit/?id=02a9f38f18db8c0465214ac2bc3a1f5337786610
commit 02a9f38f18db8c0465214ac2bc3a1f5337786610
Author: Andrey Portnoy <aportnoy@fastmail.com>
AuthorDate: 2023-02-17 15:30:44 +0000
Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
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>