changeset 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 90d7c360a614
children c08ff097b2aa
files target-utils/Makefile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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