Browse Source

improve error message when using makefile on Mac OSX

[skip ci]
Steffen Jaeckel 8 years ago
parent
commit
0e081d666a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      makefile

+ 1 - 1
README.md

@@ -58,7 +58,7 @@ There are several `makefile`s provided. Please choose the one that fits best for
 
 
 | makefile | use-case |
 | makefile | use-case |
 | -------- | -------- |
 | -------- | -------- |
-| `makefile` | builds a static library (GNU Make required) |
+| `makefile` | builds a static library (GNU Make required, broken on Mac OSX - use `makefile.unix` instead) |
 | `makefile.shared` | builds a shared (and static) library (GNU Make required) |
 | `makefile.shared` | builds a shared (and static) library (GNU Make required) |
 | `makefile.unix` | for unusual UNIX platforms, or if you do not have GNU Make |
 | `makefile.unix` | for unusual UNIX platforms, or if you do not have GNU Make |
 | `makefile.mingw` | for usage with the mingw compiler on MS Windows |
 | `makefile.mingw` | for usage with the mingw compiler on MS Windows |

+ 1 - 1
makefile

@@ -17,7 +17,7 @@ PLATFORM := $(shell uname | sed -e 's/_.*//')
 
 
 ifneq ($(MAKECMDGOALS),clean)
 ifneq ($(MAKECMDGOALS),clean)
 ifeq ($(PLATFORM), Darwin)
 ifeq ($(PLATFORM), Darwin)
-$(error Can't build static library on Mac, please use makefile.shared)
+$(error Known to not work on Mac, please use makefile.unix for static libraries or makefile.shared for shared libraries)
 endif
 endif
 endif
 endif