[J-core] [PATCH 1/4] use different arguments to ln if on Mac OS X

Christopher Friedt chrisfriedt at gmail.com
Wed May 11 08:20:32 EDT 2016


From: Christopher Friedt <chris at mmbnetworks.com>

The BSD version of ln does not support a -T argument.

See https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/link.1.html

Signed-off-by: Christopher Friedt <chrisfriedt at gmail.com>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index db56d43..061fb57 100644
--- a/Makefile
+++ b/Makefile
@@ -132,8 +132,12 @@ $(BOARD_NAMES): tools
 # create a handy last_output link
 ifneq ($(LAST_OUTPUT),false)
 	rm -f last_output
+ifeq ($(shell uname),Darwin)
+	ln -fs "$(REL_OUTPUT_DIR)" last_output
+else
 	ln -Tfs "$(REL_OUTPUT_DIR)" last_output
 endif
+endif
 # create a stub Makefile in the output directory that captures the
 # above variables so the other targets can be run later
 	@echo "REVISION:=$(REVISION)" >> "$(REL_OUTPUT_DIR)/Makefile"
-- 
2.7.4 (Apple Git-66)



More information about the J-core mailing list