FreeCalypso > hg > themwi-nanp
comparison Makefile @ 11:3d6cfb615d90
add make install hierarchy
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 13 Dec 2023 05:16:12 +0000 |
parents | 05a94b08c8e1 |
children | 78319ed870dc |
comparison
equal
deleted
inserted
replaced
10:05a94b08c8e1 | 11:3d6cfb615d90 |
---|---|
1 SUBDIR= libnumdb libnumutil utils | 1 SUBDIR= include libnumdb libnumutil utils |
2 | |
3 INSTALL_PREFIX= /opt/themwi | |
2 | 4 |
3 all: ${SUBDIR} | 5 all: ${SUBDIR} |
4 | 6 |
5 utils: libnumdb libnumutil | 7 utils: libnumdb libnumutil |
6 | 8 |
7 ${SUBDIR}: FRC | 9 ${SUBDIR}: FRC |
8 cd $@; ${MAKE} ${MFLAGS} | 10 cd $@; ${MAKE} ${MFLAGS} |
9 | 11 |
12 install: FRC | |
13 mkdir -p ${INSTALL_PREFIX} | |
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ | |
15 INSTALL_PREFIX=${INSTALL_PREFIX} install); done | |
16 | |
10 clean: FRC | 17 clean: FRC |
11 rm -f a.out core errs | 18 rm -f a.out core errs |
12 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
13 | 20 |
14 FRC: | 21 FRC: |