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