FreeCalypso > hg > themwi-nanp
annotate 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 |
rev | line source |
---|---|
11
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
1 SUBDIR= include libnumdb libnumutil utils |
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
2 |
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
3 INSTALL_PREFIX= /opt/themwi |
10 | 4 |
5 all: ${SUBDIR} | |
6 | |
7 utils: libnumdb libnumutil | |
8 | |
9 ${SUBDIR}: FRC | |
10 cd $@; ${MAKE} ${MFLAGS} | |
11 | |
11
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
12 install: FRC |
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
13 mkdir -p ${INSTALL_PREFIX} |
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
15 INSTALL_PREFIX=${INSTALL_PREFIX} install); done |
3d6cfb615d90
add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
16 |
10 | 17 clean: FRC |
18 rm -f a.out core errs | |
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
20 | |
21 FRC: |