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.
This commit is contained in:
Alex Lin 2016-08-17 17:03:36 -05:00
parent 8c8c7130b4
commit e72036f3be

View File

@ -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}