source: trunk/athena/bin/tarmail/Makefile @ 20

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#
7PHYSLOC=/u1
8DESTDIR=
9INCDIR=/usr/include
10CFLAGS=-O -I${INCDIR}
11
12all:    btoa atob
13
14install:        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
19btoa:
20        cc ${CFLAGS} btoa.c -o btoa
21
22atob:
23        cc ${CFLAGS} atob.c -o atob
24
25clean:         
26        rm -f atob btoa *.o
27
28depend:
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
48btoa: btoa.c
49btoa: /usr/include/stdio.h
50atob: atob.c
51atob: /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.