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

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