annotate Makefile @ 3:90e78243d367

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