ref: 7e0d98f3e74009dd2d6d0cdd665ca5d8a23453f6
parent: e98804740dd0d36ee04d710dc0859d31aa0126a5
author: pummelo65 <roland.zitzke@gmail.com>
date: Sat Mar 16 07:14:44 EDT 2019
Makefile modified to handle cp command for Mac OS X
--- a/main/Makefile
+++ b/main/Makefile
@@ -34,6 +34,13 @@
## Top level user programs ##
## ##
###########################################################################
+# MacOS does not accept -pd options to the cp command
+ UNAME_S := $(shell uname -s)
+ifeq ($(UNAME_S),Darwin)
+CP_FLAGS='-r'
+else
+CP_FLAGS='-pd'
+endif
TOP=..
DIRNAME=main
BUILD_DIRS =
@@ -152,7 +159,7 @@
done
$(INSTALL) -m 755 $(BINDIR)/flite_time $(DESTDIR)$(INSTALLBINDIR)
# The libraries: static and shared (if built)
- cp -pd $(flite_LIBS_deps) $(DESTDIR)$(INSTALLLIBDIR)
+ cp $(CP_FLAGS) $(flite_LIBS_deps) $(DESTDIR)$(INSTALLLIBDIR)
ifdef SHFLAGS
cp -pd $(SHAREDLIBS) $(VERSIONSHAREDLIBS) $(DESTDIR)$(INSTALLLIBDIR)
endif