diff target-utils/Makefile @ 474:bbb4f92265d2

target-utils/Makefile: INSTALL_PREFIX= scheme implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Feb 2019 05:20:01 +0000
parents 9b7ce2023355
children a58563d16e1d
line wrap: on
line diff
--- a/target-utils/Makefile	Wed Feb 13 05:06:15 2019 +0000
+++ b/target-utils/Makefile	Wed Feb 13 05:20:01 2019 +0000
@@ -4,6 +4,8 @@
 LIBS=		libbase libc libcommon libload libprintf libtiffs
 SUBDIR=		${ALLPROGS} ${LIBS}
 
+INSTALL_PREFIX=	/opt/freecalypso
+
 default:	${INSTPROGS}
 all:		${ALLPROGS}
 
@@ -21,7 +23,8 @@
 	cd $@; ${MAKE} ${MFLAGS}
 
 install: FRC
-	for i in ${INSTPROGS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
+	for i in ${INSTPROGS}; do (cd $$i; ${MAKE} ${MFLAGS} \
+		INSTDIR=${INSTALL_PREFIX}/target-bin install); done
 
 clean: FRC
 	rm -f a.out core errs