Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / support / general / Makefile
1 ##############################################################################
2 #    Instructions to Make, for general support processes
3 #
4 #       This file is automatically generated.  Do not edit!
5 # @(#)$Id: general,v 1.20 1995/12/06 20:57:55 jromine Exp $
6 ##############################################################################
7
8 # The following entries were inserted during MH configuration
9 BINDIR  =       $(DESTDIR)/opt/mh-6.8.5/bin
10 ETCDIR  =       $(DESTDIR)/opt/mh-6.8.5/lib
11 IOPTMIME=       inst-mhndefs inst-viamail inst-pgpmime
12 UOPTMIME=       mhn_defaults viamail
13 TOPTMIME=       mhn_defaults viamail
14 REMOVE  =       mv -f
15 FILPROT =       0644
16 PGMPROT =       0755
17 CP      =       cp
18
19 TALL    =       MailAliases components digestcomps distcomps forwcomps \
20                 rcvdistcomps replcomps mhl.digest mhl.format mhl.forward \
21                 mhl.body mhl.headers scan.default scan.mailx scan.size \
22                 scan.time scan.timely packmbox $(TOPTMISC) $(TOPTMIME)
23
24
25 ##############################################################################
26 #       Generate miscellaneous stuff
27 ##############################################################################
28
29 all:;
30
31 depend:;
32
33 lint:;
34
35 install:        inst-all clean
36
37 inst-all:       inst-aliases inst-components inst-digestcomps inst-distcomps \
38                 inst-forwcomps inst-rcvdistcomps inst-replcomps inst-digest \
39                 inst-format inst-forward inst-body inst-headers inst-mailx \
40                 inst-default inst-size inst-time inst-timely \
41                 inst-packmbox $(IOPTMISC) $(IOPTMIME)
42
43 tar:;           @touch $(TALL)
44                 @make -n inst-all > MAKEGEN
45                 @chmod +x MAKEGEN
46                 tar $(TFLAGS) MAKEGEN $(TALL)
47                 @rm -f MAKEGEN
48
49
50 uninstall:;     cd $(ETCDIR); \
51                 rm -f MailAliases components digestcomps distcomps forwcomps \
52                     rcvdistcomps replcomps mhl.digest mhl.format mhl.forward \
53                     mhl.body mhl.headers scan.default scan.mailx scan.size \
54                     scan.time scan.timely viamail packmbox \
55                     $(UOPTMISC) $(UOPTMIME)
56
57
58 ##############################################################################
59 #       Individual components
60 ##############################################################################
61
62 inst-aliases:   $(ETCDIR)/MailAliases
63
64 $(ETCDIR)/MailAliases:  MailAliases
65                 -@if [ ! -f $@ ]; then \
66                     $(REMOVE) $@ zMailAliases; \
67                     $(CP) MailAliases $@; \
68                 else \
69                     echo "Will not overwrite existing $@"; \
70                 fi
71                 -@chmod $(FILPROT) $@
72                 -@ls -l $@
73                 -@echo ""
74
75
76 inst-components:        $(ETCDIR)/components
77
78 $(ETCDIR)/components:   components
79                 -$(REMOVE) $@ zcomponents
80                 $(CP) components $@
81                 -@chmod $(FILPROT) $@
82                 -@ls -l $@
83                 -@echo ""
84
85
86 inst-digestcomps:       $(ETCDIR)/digestcomps
87
88 $(ETCDIR)/digestcomps:  digestcomps
89                 -$(REMOVE) $@ zdigestcomps
90                 $(CP) digestcomps $@
91                 -@chmod $(FILPROT) $@
92                 -@ls -l $@
93                 -@echo ""
94
95
96 inst-distcomps: $(ETCDIR)/distcomps
97
98 $(ETCDIR)/distcomps:    distcomps
99                 -$(REMOVE) $@ zdistcomps
100                 $(CP) distcomps $@
101                 -@chmod $(FILPROT) $@
102                 -@ls -l $@
103                 -@echo ""
104
105
106 inst-forwcomps: $(ETCDIR)/forwcomps
107
108 $(ETCDIR)/forwcomps:    forwcomps
109                 -$(REMOVE) $@ zforwcomps
110                 $(CP) forwcomps $@
111                 -@chmod $(FILPROT) $@
112                 -@ls -l $@
113                 -@echo ""
114
115
116 inst-rcvdistcomps:      $(ETCDIR)/rcvdistcomps
117
118 $(ETCDIR)/rcvdistcomps: rcvdistcomps
119                 -$(REMOVE) $@ zrcvdistcomps
120                 $(CP) rcvdistcomps $@
121                 -@chmod $(FILPROT) $@
122                 -@ls -l $@
123                 -@echo ""
124
125
126 inst-replcomps: $(ETCDIR)/replcomps
127
128 $(ETCDIR)/replcomps:    replcomps
129                 -$(REMOVE) $@ zreplcomps
130                 $(CP) replcomps $@
131                 -@chmod $(FILPROT) $@
132                 -@ls -l $@
133                 -@echo ""
134
135
136 inst-digest:    $(ETCDIR)/mhl.digest
137
138 $(ETCDIR)/mhl.digest:   mhl.digest
139                 -$(REMOVE) $@ zmhl.digest
140                 $(CP) mhl.digest $@
141                 -@chmod $(FILPROT) $@
142                 -@ls -l $@
143                 -@echo ""
144
145
146 inst-format:    $(ETCDIR)/mhl.format
147
148 $(ETCDIR)/mhl.format:   mhl.format
149                 -$(REMOVE) $@ zmhl.format
150                 $(CP) mhl.format $@
151                 -@chmod $(FILPROT) $@
152                 -@ls -l $@
153                 -@echo ""
154
155
156 inst-forward:   $(ETCDIR)/mhl.forward
157
158 $(ETCDIR)/mhl.forward:  mhl.forward
159                 -$(REMOVE) $@ zmhl.forward
160                 $(CP) mhl.forward $@
161                 -@chmod $(FILPROT) $@
162                 -@ls -l $@
163                 -@echo ""
164
165
166 inst-body:      $(ETCDIR)/mhl.body
167
168 $(ETCDIR)/mhl.body:     mhl.body
169                 -$(REMOVE) $@ zmhl.body
170                 $(CP) mhl.body $@
171                 -@chmod $(FILPROT) $@
172                 -@ls -l $@
173                 -@echo ""
174
175
176 inst-headers:   $(ETCDIR)/mhl.headers
177
178 $(ETCDIR)/mhl.headers:  mhl.headers
179                 -$(REMOVE) $@ zmhl.headers
180                 cp mhl.headers $@
181                 -@chmod $(FILPROT) $@
182                 -@ls -l $@
183                 -@echo ""
184
185
186 inst-default:   $(ETCDIR)/scan.default
187
188 $(ETCDIR)/scan.default: scan.default
189                 -$(REMOVE) $@ zscan.default
190                 $(CP) scan.default $@
191                 -@chmod $(FILPROT) $@
192                 -@ls -l $@
193                 -@echo ""
194
195 inst-mailx:     $(ETCDIR)/scan.mailx
196
197 $(ETCDIR)/scan.mailx:   scan.mailx
198                 -$(REMOVE) $@ zscan.mailx
199                 $(CP) scan.mailx $@
200                 -@chmod $(FILPROT) $@
201                 -@ls -l $@
202                 -@echo ""
203
204
205 inst-size:      $(ETCDIR)/scan.size
206
207 $(ETCDIR)/scan.size:    scan.size
208                 -$(REMOVE) $@ zscan.size
209                 $(CP) scan.size $@
210                 -@chmod $(FILPROT) $@
211                 -@ls -l $@
212                 -@echo ""
213
214
215 inst-time:      $(ETCDIR)/scan.time
216
217 $(ETCDIR)/scan.time:    scan.time
218                 -$(REMOVE) $@ zscan.time
219                 $(CP) scan.time $@
220                 -@chmod $(FILPROT) $@
221                 -@ls -l $@
222                 -@echo ""
223
224
225 inst-timely:    $(ETCDIR)/scan.timely
226
227 $(ETCDIR)/scan.timely:  scan.timely
228                 -$(REMOVE) $@ zscan.timely
229                 $(CP) scan.timely $@
230                 -@chmod $(FILPROT) $@
231                 -@ls -l $@
232                 -@echo ""
233
234
235 inst-packmbox:  $(ETCDIR)/packmbox
236
237 $(ETCDIR)/packmbox:     packmbox.sh
238                 -$(REMOVE) $@ zpackmbox.sh
239                 cp packmbox.sh $@
240                 -@chmod $(PGMPROT) $@
241                 -@ls -l $@
242                 -@echo ""
243
244
245 inst-bboards:   $(ETCDIR)/BBoardAliases
246
247 $(ETCDIR)/BBoardAliases:        BBoardAliases
248                 -@if [ ! -f $@ ]; then \
249                     $(REMOVE) $@ zBBoardAliases; \
250                     $(CP) BBoardAliases $@; \
251                 else \
252                     echo "Will not overwrite existing $@"; \
253                 fi
254                 -@chmod $(FILPROT) $@
255                 -chown $(BBUID) $@
256                 -@ls -l $@
257                 -@echo ""
258
259
260 inst-viamail:   $(ETCDIR)/viamail
261
262 $(ETCDIR)/viamail:      viamail.sh
263                 -$(REMOVE) $@ zviamail.sh
264                 cp viamail.sh $@
265                 -@chmod $(PGMPROT) $@
266                 -@ls -l $@
267                 -@echo ""
268
269
270 inst-mhndefs:   $(ETCDIR)/mhn_defaults
271
272 $(ETCDIR)/mhn_defaults: true
273                 -@if [ ! -f $@ ]; then \
274                     ./bootmhn.sh $(ETCDIR); \
275                 else \
276                     echo "Will not overwrite existing $@"; \
277                 fi
278                 -@chmod $(FILPROT) $@
279                 -@ls -l $@
280                 -@echo ""
281
282
283 inst-pgpmime:   $(ETCDIR)/pgped.tcl $(BINDIR)/pgped $(BINDIR)/pgpshow
284
285 $(ETCDIR)/pgped.tcl:    pgped.tcl
286                 -$(REMOVE) $@ zpgped.tcl
287                 cp pgped.tcl $@
288                 -@chmod $(FILPROT) $@
289                 -@ls -l $@
290                 -@echo ""
291
292 $(BINDIR)/pgped:        pgped.sh
293                 -$(REMOVE) $@ zpgped.sh
294                 sed -e 's%@LIB%$(ETCDIR)%' < pgped.sh > $@
295                 -@chmod $(PGMPROT) $@
296                 -@ls -l $@
297                 -@echo ""
298
299 $(BINDIR)/pgpshow:      pgpshow.sh
300                 -$(REMOVE) $@ zpgpshow.sh
301                 cp pgpshow.sh $@
302                 -@chmod $(PGMPROT) $@
303                 -@ls -l $@
304                 -@echo ""
305
306
307 ##############################################################################
308 #       Miscellaneous tasks
309 ##############################################################################
310
311 unconfig:       distribution
312                 -rm -f Makefile
313
314 distribution:   clean
315                 -rm -f MailAliases
316
317 clean:          unclean
318                 -rm -f x*
319
320 unclean:;       -rm -f z* _* :* core MAKEGEN
321
322 true:;