From 954e1aa3834a97595e6c82a669ce1401c18f0cbd Mon Sep 17 00:00:00 2001 From: Christopher LaChance Date: Fri, 17 Nov 2017 11:39:17 -0600 Subject: [PATCH] Added warning to 'make install'. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c38b3a2a..a32e1c56 100644 --- a/Makefile +++ b/Makefile @@ -343,7 +343,12 @@ ${ER7_HEADERS} : ${PREFIX}/include/% : trick_source/% install -m 0644 $? $@ install: ${ER7_HEADERS} - cp -r bin include $(notdir ${TRICK_LIB_DIR}) libexec share ${PREFIX} + @if [ ! -d ${TRICK_LIB_DIR} ]; then \ + echo "Trick needs to be compiled before you can install it. Run 'make' before attempting to run 'make install'."; \ + else \ + cp -r bin include $(notdir ${TRICK_LIB_DIR}) libexec share ${PREFIX}; \ + echo "Trick has been successfully installed."; \ + fi uninstall: rm -f ${PREFIX}/bin/trick-CP