annotate Makefile @ 5:e7b192a5dee5

mtctest: initial import from old ThemWi
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 09 Jun 2024 00:58:38 +0000
parents ce450869db09
children d0b86b144577
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 PROGDIR=mncc
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
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 mncc: libutil
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 ${SUBDIR}: FRC config.defs
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 cd $@; ${MAKE} ${MFLAGS}
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 config.defs:
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 @echo 'You must run ./configure before make'
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 @false
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 install: FRC
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 DESTDIR=${DESTDIR} install); done
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 clean: FRC
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 rm -f a.out core errs
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24
ce450869db09 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 FRC: