annotate Makefile @ 36:84affc6de365 default tip

Makefile hierarchy: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 09 Jul 2024 02:22:18 +0000
parents be04d84f5468
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
84affc6de365 Makefile hierarchy: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
1 SUBDIR= include src
4
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 DESTDIR=
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 all: ${SUBDIR}
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 ${SUBDIR}: FRC config.defs
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 cd $@; ${MAKE} ${MFLAGS}
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 config.defs:
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 @echo 'You must run ./configure before make'
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 @false
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
36
84affc6de365 Makefile hierarchy: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
13 install: FRC
84affc6de365 Makefile hierarchy: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
84affc6de365 Makefile hierarchy: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
15 DESTDIR=${DESTDIR} install); done
4
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 clean: FRC
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 rm -f a.out core errs
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
be04d84f5468 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 FRC: