must rm before ln
[unix-history] / usr / src / usr.bin / pascal / Makefile
... / ...
CommitLineData
1# @(#)Makefile 1.3 (Berkeley) %G%
2#
3DESTDIR=
4CFLAGS= -O
5
6# Programs that live in subdirectories, and have makefiles of their own.
7#
8SUBDIR= pi pc0 px pxp pdx utilities
9
10all: ${SUBDIR}
11
12${SUBDIR}: /tmp
13 cd $@; make ${MFLAGS}
14
15install:
16 for i in ${SUBDIR}; do \
17 (echo $$i; cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
18 done
19
20clean:
21 rm -f a.out core *.s *.o
22 for i in ${SUBDIR}; do \
23 (echo $$i; cd $$i; make ${MFLAGS} clean); \
24 done