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