1 ##############################################################################
2 # Instructions to Make, for general support processes
5 # @(#)$Id: general,v 1.20 1995/12/06 20:57:55 jromine Exp $
6 ##############################################################################
8 # The following entries were inserted during MH configuration
9 BINDIR = $(DESTDIR)@(MHBINPATH)
10 ETCDIR = $(DESTDIR)@(MHETCPATH)
13 IOPTMISC= inst-bboards
14 UOPTMISC= BBoardAliases
15 TOPTMISC= BBoardAliases
18 IOPTMIME= inst-mhndefs inst-viamail inst-pgpmime
19 UOPTMIME= mhn_defaults viamail
20 TOPTMIME= mhn_defaults viamail
27 TALL = MailAliases components digestcomps distcomps forwcomps \
28 rcvdistcomps replcomps mhl.digest mhl.format mhl.forward \
29 mhl.body mhl.headers scan.default scan.mailx scan.size \
30 scan.time scan.timely packmbox $(TOPTMISC) $(TOPTMIME)
33 ##############################################################################
34 # Generate miscellaneous stuff
35 ##############################################################################
43 install: inst-all clean
45 inst-all: inst-aliases inst-components inst-digestcomps inst-distcomps \
46 inst-forwcomps inst-rcvdistcomps inst-replcomps inst-digest \
47 inst-format inst-forward inst-body inst-headers inst-mailx \
48 inst-default inst-size inst-time inst-timely \
49 inst-packmbox $(IOPTMISC) $(IOPTMIME)
52 @make -n inst-all > MAKEGEN
54 tar $(TFLAGS) MAKEGEN $(TALL)
58 uninstall:; cd $(ETCDIR); \
59 rm -f MailAliases components digestcomps distcomps forwcomps \
60 rcvdistcomps replcomps mhl.digest mhl.format mhl.forward \
61 mhl.body mhl.headers scan.default scan.mailx scan.size \
62 scan.time scan.timely viamail packmbox \
63 $(UOPTMISC) $(UOPTMIME)
66 ##############################################################################
67 # Individual components
68 ##############################################################################
70 inst-aliases: $(ETCDIR)/MailAliases
72 $(ETCDIR)/MailAliases: MailAliases
73 -@if [ ! -f $@ ]; then \
74 $(REMOVE) $@ zMailAliases; \
75 $(CP) MailAliases $@; \
77 echo "Will not overwrite existing $@"; \
84 inst-components: $(ETCDIR)/components
86 $(ETCDIR)/components: components
87 -$(REMOVE) $@ zcomponents
94 inst-digestcomps: $(ETCDIR)/digestcomps
96 $(ETCDIR)/digestcomps: digestcomps
97 -$(REMOVE) $@ zdigestcomps
104 inst-distcomps: $(ETCDIR)/distcomps
106 $(ETCDIR)/distcomps: distcomps
107 -$(REMOVE) $@ zdistcomps
109 -@chmod $(FILPROT) $@
114 inst-forwcomps: $(ETCDIR)/forwcomps
116 $(ETCDIR)/forwcomps: forwcomps
117 -$(REMOVE) $@ zforwcomps
119 -@chmod $(FILPROT) $@
124 inst-rcvdistcomps: $(ETCDIR)/rcvdistcomps
126 $(ETCDIR)/rcvdistcomps: rcvdistcomps
127 -$(REMOVE) $@ zrcvdistcomps
128 $(CP) rcvdistcomps $@
129 -@chmod $(FILPROT) $@
134 inst-replcomps: $(ETCDIR)/replcomps
136 $(ETCDIR)/replcomps: replcomps
137 -$(REMOVE) $@ zreplcomps
139 -@chmod $(FILPROT) $@
144 inst-digest: $(ETCDIR)/mhl.digest
146 $(ETCDIR)/mhl.digest: mhl.digest
147 -$(REMOVE) $@ zmhl.digest
149 -@chmod $(FILPROT) $@
154 inst-format: $(ETCDIR)/mhl.format
156 $(ETCDIR)/mhl.format: mhl.format
157 -$(REMOVE) $@ zmhl.format
159 -@chmod $(FILPROT) $@
164 inst-forward: $(ETCDIR)/mhl.forward
166 $(ETCDIR)/mhl.forward: mhl.forward
167 -$(REMOVE) $@ zmhl.forward
169 -@chmod $(FILPROT) $@
174 inst-body: $(ETCDIR)/mhl.body
176 $(ETCDIR)/mhl.body: mhl.body
177 -$(REMOVE) $@ zmhl.body
179 -@chmod $(FILPROT) $@
184 inst-headers: $(ETCDIR)/mhl.headers
186 $(ETCDIR)/mhl.headers: mhl.headers
187 -$(REMOVE) $@ zmhl.headers
189 -@chmod $(FILPROT) $@
194 inst-default: $(ETCDIR)/scan.default
196 $(ETCDIR)/scan.default: scan.default
197 -$(REMOVE) $@ zscan.default
198 $(CP) scan.default $@
199 -@chmod $(FILPROT) $@
203 inst-mailx: $(ETCDIR)/scan.mailx
205 $(ETCDIR)/scan.mailx: scan.mailx
206 -$(REMOVE) $@ zscan.mailx
208 -@chmod $(FILPROT) $@
213 inst-size: $(ETCDIR)/scan.size
215 $(ETCDIR)/scan.size: scan.size
216 -$(REMOVE) $@ zscan.size
218 -@chmod $(FILPROT) $@
223 inst-time: $(ETCDIR)/scan.time
225 $(ETCDIR)/scan.time: scan.time
226 -$(REMOVE) $@ zscan.time
228 -@chmod $(FILPROT) $@
233 inst-timely: $(ETCDIR)/scan.timely
235 $(ETCDIR)/scan.timely: scan.timely
236 -$(REMOVE) $@ zscan.timely
238 -@chmod $(FILPROT) $@
243 inst-packmbox: $(ETCDIR)/packmbox
245 $(ETCDIR)/packmbox: packmbox.sh
246 -$(REMOVE) $@ zpackmbox.sh
248 -@chmod $(PGMPROT) $@
253 inst-bboards: $(ETCDIR)/BBoardAliases
255 $(ETCDIR)/BBoardAliases: BBoardAliases
256 -@if [ ! -f $@ ]; then \
257 $(REMOVE) $@ zBBoardAliases; \
258 $(CP) BBoardAliases $@; \
260 echo "Will not overwrite existing $@"; \
262 -@chmod $(FILPROT) $@
268 inst-viamail: $(ETCDIR)/viamail
270 $(ETCDIR)/viamail: viamail.sh
271 -$(REMOVE) $@ zviamail.sh
273 -@chmod $(PGMPROT) $@
278 inst-mhndefs: $(ETCDIR)/mhn_defaults
280 $(ETCDIR)/mhn_defaults: true
281 -@if [ ! -f $@ ]; then \
282 ./bootmhn.sh $(ETCDIR); \
284 echo "Will not overwrite existing $@"; \
286 -@chmod $(FILPROT) $@
291 inst-pgpmime: $(ETCDIR)/pgped.tcl $(BINDIR)/pgped $(BINDIR)/pgpshow
293 $(ETCDIR)/pgped.tcl: pgped.tcl
294 -$(REMOVE) $@ zpgped.tcl
296 -@chmod $(FILPROT) $@
300 $(BINDIR)/pgped: pgped.sh
301 -$(REMOVE) $@ zpgped.sh
302 sed -e 's%@LIB%$(ETCDIR)%' < pgped.sh > $@
303 -@chmod $(PGMPROT) $@
307 $(BINDIR)/pgpshow: pgpshow.sh
308 -$(REMOVE) $@ zpgpshow.sh
310 -@chmod $(PGMPROT) $@
315 ##############################################################################
316 # Miscellaneous tasks
317 ##############################################################################
319 unconfig: distribution
328 unclean:; -rm -f z* _* :* core MAKEGEN