1 | # |
---|
2 | # $Source: /afs/dev.mit.edu/source/repository/athena/bin/tarmail/Makefile,v $ |
---|
3 | # $Author: shanzer $ |
---|
4 | # $Locker: $ |
---|
5 | # $Header: /afs/dev.mit.edu/source/repository/athena/bin/tarmail/Makefile,v 1.9 1988-01-22 14:56:05 shanzer Exp $ |
---|
6 | # |
---|
7 | DESTDIR= |
---|
8 | INCDIR=/usr/include |
---|
9 | CFLAGS=-O -I${INCDIR} |
---|
10 | |
---|
11 | all: btoa atob |
---|
12 | |
---|
13 | install: atob btoa tarmail untarmail |
---|
14 | install -c -s btoa ${DESTDIR}/usr/athena |
---|
15 | install -c -s atob ${DESTDIR}/usr/athena |
---|
16 | install -c tarmail ${DESTDIR}/usr/athena |
---|
17 | install -c untarmail ${DESTDIR}/usr/athena |
---|
18 | install -c btoa.1 ${DESTDIR}/usr/man/man1 |
---|
19 | install -c tarmail.1 ${DESTDIR}/usr/man/man1 |
---|
20 | install -c atob.1 ${DESTDIR}/usr/man/man1 |
---|
21 | |
---|
22 | btoa: |
---|
23 | cc ${CFLAGS} btoa.c -o btoa |
---|
24 | |
---|
25 | atob: |
---|
26 | cc ${CFLAGS} atob.c -o atob |
---|
27 | |
---|
28 | clean: |
---|
29 | rm -f atob btoa *.o |
---|
30 | |
---|
31 | depend: |
---|
32 | cat </dev/null >x.c |
---|
33 | for i in btoa atob; do \ |
---|
34 | (echo $$i: $$i.c >>makedep; \ |
---|
35 | /bin/grep '^#[ ]*include' x.c $$i.c | sed \ |
---|
36 | -e 's,<\(.*\)>,"${INCDIR}/\1",' \ |
---|
37 | -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ |
---|
38 | -e 's/\.c//' >>makedep); done |
---|
39 | echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep |
---|
40 | echo '$$r makedep' >>eddep |
---|
41 | echo 'w' >>eddep |
---|
42 | cp Makefile Makefile.bak |
---|
43 | ed - Makefile < eddep |
---|
44 | rm eddep makedep x.c |
---|
45 | echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile |
---|
46 | echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile |
---|
47 | echo '# see make depend above' >> Makefile |
---|
48 | |
---|
49 | # DO NOT DELETE THIS LINE -- make depend uses it |
---|
50 | |
---|
51 | btoa: btoa.c |
---|
52 | btoa: /usr/include/stdio.h |
---|
53 | atob: atob.c |
---|
54 | atob: /usr/include/stdio.h |
---|
55 | # DEPENDENCIES MUST END AT END OF FILE |
---|
56 | # IF YOU PUT STUFF HERE IT WILL GO AWAY |
---|
57 | # see make depend above |
---|