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

Revision 993, 1.5 KB checked in by shanzer, 36 years ago (diff)
Fixed man page installation..
Line 
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#
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        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
22btoa:
23        cc ${CFLAGS} btoa.c -o btoa
24
25atob:
26        cc ${CFLAGS} atob.c -o atob
27
28clean:         
29        rm -f atob btoa *.o
30
31depend:
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
51btoa: btoa.c
52btoa: /usr/include/stdio.h
53atob: atob.c
54atob: /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
Note: See TracBrowser for help on using the repository browser.