From e72036f3be6f8dca48a2b6b70592db58f792315e Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Wed, 17 Aug 2016 17:03:36 -0500 Subject: [PATCH] the install command on the Mac does not take the -D argument #283 Instead of having the install command try and create the destination directory we use a second command to mkdir the directory first. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97202d47..bf3420d8 100644 --- a/Makefile +++ b/Makefile @@ -336,10 +336,12 @@ clean_gui: clean_java # INSTALL Targets ################################################################################ +PREFIX=/users/alin/temp3 ER7_HEADERS := $(addprefix $(PREFIX)/include/, $(filter er7_utils/%, $(shell cd trick_source && find er7_utils -name \*.hh))) ${ER7_HEADERS} : ${PREFIX}/include/% : trick_source/% - install -m 0644 -D $? $@ + @ mkdir -p ${@D} + install -m 0644 $? $@ install: ${ER7_HEADERS} cp -r bin include $(notdir ${TRICK_LIB_DIR}) libexec share ${PREFIX}