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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 all: ${SUBDIR}
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 utils: libnumdb libnumutil
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 ${SUBDIR}: FRC
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 cd $@; ${MAKE} ${MFLAGS}
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
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
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 clean: FRC
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 rm -f a.out core errs
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
05a94b08c8e1 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 FRC: