comparison Makefile @ 189:123dc7370581

top Makefile: install scripts
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Mar 2021 21:11:21 +0000
parents e6263e1b16f8
children cac52723c02c
comparison
equal deleted inserted replaced
188:aebb0912eee4 189:123dc7370581
1 PROGDIR=misc offline simtool uicc 1 PROGDIR=misc offline simtool uicc
2 LIBDIR= libcommon libutil 2 LIBDIR= libcommon libutil
3 SUBDIR= ${PROGDIR} ${LIBDIR} 3 SUBDIR= ${PROGDIR} ${LIBDIR}
4
5 INSTALL_PREFIX= /opt/freecalypso
4 6
5 all: ${SUBDIR} 7 all: ${SUBDIR}
6 8
7 misc: libcommon 9 misc: libcommon
8 offline: libutil 10 offline: libutil
15 clean: FRC 17 clean: FRC
16 rm -f a.out core errs 18 rm -f a.out core errs
17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
18 20
19 install: FRC 21 install: FRC
20 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done 22 mkdir -p ${INSTALL_PREFIX}
23 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
24 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
25 mkdir -p ${INSTALL_PREFIX}/sim-scripts
26 install -c -m 644 scripts/* ${INSTALL_PREFIX}/sim-scripts
21 27
22 FRC: 28 FRC: