From d7628a4d291095088f7e5d5c28b720224e6b4bd8 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 14 Sep 2017 14:17:51 -0500 Subject: [PATCH] Emit error and GNU Make directions when compiled with BSD Make On BSD platforms, a BSD-specific BSDmakefile is searched for and used before any generic Makefile. We can use this to emit an informational message directing the user to use GNU Make instead of relying on the user's recognizing of random build failures on syntax errors as a sign to switch to GNU Make. (Random fact: this same trick also applies to GNU Make, which searches for a GNUmakefile before using Makefile) --- BSDmakefile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 BSDmakefile diff --git a/BSDmakefile b/BSDmakefile new file mode 100644 index 000000000..e2e3b9adf --- /dev/null +++ b/BSDmakefile @@ -0,0 +1,3 @@ +all: + @echo "Error: BSD Make not supported" + @echo "Please use GNU Make (gmake) to build fish. Refer to README.md for detailed build instructions."