]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/Makefile
Added several historical source archives from the early days of MH.
[nmh] / docs / historical / mh-jun-1982 / Makefile
1 #
2 # Proprietary Rand Corporation, 1981.
3 # Further distribution of this software
4 # subject to the terms of the Rand
5 # license agreement.
6 #
7
8 #
9
10 # The following two must match entries in */Makefile
11 BINDIR = /usr/local
12 MHDIR = /etc/mh
13
14 all:
15 cd subs; make
16 cd strings; make
17 cd progs; make progs
18
19 uninstall:
20 cd progs; make uninstall
21 cd support; make uninstall
22 cd man; make uninstall
23 -rm -rf $(MHDIR)
24 -mv /usr/man/man1/bellmail.1 /usr/man/man1/mail.1
25 -mv /bin/bellmail /bin/mail
26 rm -f /bin/rmail
27 ln /bin/mail /bin/rmail
28 -mv /usr/man/man1/filetype.1 /usr/man/man1/file.1
29 -mv /usr/bin/filetype /usr/bin/file
30 -mv /bin/filetype /bin/file
31
32 onceonly:
33 -@if [ ! -f /usr/bin/filetype -a ! -f /bin/filetype -a -f /bin/file ] ; then \
34 mv /bin/file /bin/filetype;echo "/bin/file => /bin/filetype" ; else true ; fi
35 -@if [ ! -f /bin/filetype -a ! -f /usr/bin/filetype -a -f /usr/bin/file ] ; then \
36 mv /usr/bin/file /usr/bin/filetype;echo "/usr/bin/file => /usr/bin/filetype" ; else true ; fi
37 -@if [ ! -f /usr/man/man1/filetype.1 -a -f /usr/man/man1/file.1 ] ; then \
38 mv /usr/man/man1/file.1 /usr/man/man1/filetype.1;echo "/usr/man/man1/file.1 => /usr/man/man1/filetype.1" ; else true ; fi
39 -@if [ ! -f /bin/bellmail -a -f /bin/mail ] ; then \
40 mv /bin/mail /bin/bellmail;echo "/bin/mail => /bin/bellmail" ; else true ; fi
41 -@if [ ! -f /usr/man/man1/bellmail.1 -a -f /usr/man/man1/mail.1 ] ; then \
42 mv /usr/man/man1/mail.1 /usr/man/man1/bellmail.1;echo "/usr/man/man1/mail.1 => /usr/man/man1/bellmail.1" ; else true ; fi
43 -@if [ -f $(BINDIR)/comp ] ; then \
44 echo "Collision on $(BINDIR)/comp" ; else true ; fi
45 # -@if [ -f $(BINDIR)/dist ] ; then \
46 echo "Collision on $(BINDIR)/dist" ; else true ; fi
47 # -@if [ -f $(BINDIR)/file ] ; then \
48 echo "Collision on $(BINDIR)/file" ; else true ; fi
49 -@if [ -f $(BINDIR)/folder ] ; then \
50 echo "Collision on $(BINDIR)/folder" ; else true ; fi
51 -@if [ -f $(BINDIR)/forw ] ; then \
52 echo "Collision on $(BINDIR)/forw" ; else true ; fi
53 -@if [ -f $(BINDIR)/inc ] ; then \
54 echo "Collision on $(BINDIR)/inc" ; else true ; fi
55 # -@if [ -f $(BINDIR)/mail ] ; then \
56 echo "Collision on $(BINDIR)/mail" ; else true ; fi
57 -@if [ -f $(BINDIR)/news ] ; then \
58 echo "Collision on $(BINDIR)/news" ; else true ; fi
59 -@if [ -f $(BINDIR)/next ] ; then \
60 echo "Collision on $(BINDIR)/next" ; else true ; fi
61 -@if [ -f $(BINDIR)/pick ] ; then \
62 echo "Collision on $(BINDIR)/pick" ; else true ; fi
63 -@if [ -f $(BINDIR)/prev ] ; then \
64 echo "Collision on $(BINDIR)/prev" ; else true ; fi
65 -@if [ -f $(BINDIR)/prompter ] ; then \
66 echo "Collision on $(BINDIR)/prompter" ; else true ; fi
67 -@if [ -f $(BINDIR)/repl ] ; then \
68 echo "Collision on $(BINDIR)/repl" ; else true ; fi
69 -@if [ -f $(BINDIR)/rmf ] ; then \
70 echo "Collision on $(BINDIR)/rmf" ; else true ; fi
71 -@if [ -f $(BINDIR)/rmm ] ; then \
72 echo "Collision on $(BINDIR)/rmm" ; else true ; fi
73 -@if [ -f $(BINDIR)/scan ] ; then \
74 echo "Collision on $(BINDIR)/scan" ; else true ; fi
75 -@if [ -f $(BINDIR)/send ] ; then \
76 echo "Collision on $(BINDIR)/send" ; else true ; fi
77 -@if [ -f $(BINDIR)/show ] ; then \
78 echo "Collision on $(BINDIR)/show" ; else true ; fi
79 -@if [ -f $(MHDIR) -o -d $(MHDIR) ] ; then \
80 echo "$(MHDIR) already exists!"; else true ; fi
81
82 install:
83 cd progs; make install
84 cd support; make install
85 cd man; make install
86
87 pinstall:
88 cd progs; make pinstall
89
90 distribution:
91 cd support; make distribution
92 cd subs; make distribution
93 cd strings; make distribution
94 cd progs; make distribution
95
96 clean:
97 cd support; make clean
98 cd subs; make clean
99 cd strings; make clean
100 cd progs; make clean