annotate Makefile @ 8:a902ccbf6bbc

mtctest: introduce general user command structure
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 09 Jun 2024 02:48:55 +0000
parents d0b86b144577
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
d0b86b144577 top Makefile: add mtctest
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
1 PROGDIR=mncc mtctest
4
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 LIBDIR= libutil
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 SUBDIR= ${PROGDIR} ${LIBDIR}
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 DESTDIR=
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 all: ${SUBDIR}
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
7
d0b86b144577 top Makefile: add mtctest
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
8 mncc: libutil
d0b86b144577 top Makefile: add mtctest
Mychaela Falconia <falcon@freecalypso.org>
parents: 4
diff changeset
9 mtctest: libutil
4
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 ${SUBDIR}: FRC config.defs
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 cd $@; ${MAKE} ${MFLAGS}
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 config.defs:
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 @echo 'You must run ./configure before make'
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 @false
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 install: FRC
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 DESTDIR=${DESTDIR} install); done
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 clean: FRC
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 rm -f a.out core errs
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 FRC: