From cfcff881675f68fb9b448ae5a4c2235e657a38b6 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Mon, 4 Dec 2023 16:51:51 -0800
Subject: [PATCH] Throw an error and hint if SYMLINK is defined on the
 command-line

Since SYMLINK=1 is valid/suggested for install/GNUmakefile, this is a common
mistake that we can catch here.
---
 src/sbbs3/GNUmakefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/sbbs3/GNUmakefile b/src/sbbs3/GNUmakefile
index 097f0edff5..b3f483ac46 100644
--- a/src/sbbs3/GNUmakefile
+++ b/src/sbbs3/GNUmakefile
@@ -11,6 +11,10 @@
 # Optional build targets: dlls, utils, mono, all (default)				#
 #########################################################################
 
+ifdef SYMLINK
+$(error SYMLINK was defined and unexpected. You might mean the 'symlinks' target instead)
+endif
+
 PWD	:=	$(shell /bin/pwd)
 SRC_ROOT	?=	${PWD}/..
 include $(SRC_ROOT)/build/Common.gmake
-- 
GitLab