changeset 189:123dc7370581

top Makefile: install scripts
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Mar 2021 21:11:21 +0000
parents aebb0912eee4
children f756bafde7a9
files Makefile
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Mar 06 21:04:32 2021 +0000
+++ b/Makefile	Sat Mar 06 21:11:21 2021 +0000
@@ -2,6 +2,8 @@
 LIBDIR=	libcommon libutil
 SUBDIR=	${PROGDIR} ${LIBDIR}
 
+INSTALL_PREFIX=	/opt/freecalypso
+
 all:	${SUBDIR}
 
 misc:		libcommon
@@ -17,6 +19,10 @@
 	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
 
 install: FRC
-	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
+	mkdir -p ${INSTALL_PREFIX}
+	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
+		INSTALL_PREFIX=${INSTALL_PREFIX} install); done
+	mkdir -p ${INSTALL_PREFIX}/sim-scripts
+	install -c -m 644 scripts/* ${INSTALL_PREFIX}/sim-scripts
 
 FRC: