annotate Makefile @ 13:c0bfd300b6e5

add INSTALL
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Dec 2023 06:07:40 +0000
parents 3d6cfb615d90
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: