1 ##############################################################################
2 # Instructions to Make, for generation of MH manual entries
4 # This file is automatically generated. Do not edit!
5 # @(#)$Id: doc,v 2.26 1993/08/27 22:15:57 jromine Exp $
6 ##############################################################################
8 BINDIR = $(DESTDIR)/opt/mh-6.8.5/bin
9 ETCDIR = $(DESTDIR)/opt/mh-6.8.5/lib
10 MANDIR = $(DESTDIR)/opt/mh-6.8.5/man
20 MAN1 = ali.$(EXT1) anno.$(EXT1) burst.$(EXT1) comp.$(EXT1) \
21 dist.$(EXT1) folder.$(EXT1) forw.$(EXT1) inc.$(EXT1) \
22 mark.$(EXT1) mh-chart.$(EXT1) mh.$(EXT1) mhl.$(EXT1) \
23 mhook.$(EXT1) mhmail.$(EXT1) \
25 mhparam.$(EXT1) mhpath.$(EXT1) msgchk.$(EXT1) \
26 msh.$(EXT1) next.$(EXT1) packf.$(EXT1) pick.$(EXT1) \
27 prev.$(EXT1) prompter.$(EXT1) rcvstore.$(EXT1) refile.$(EXT1) \
28 repl.$(EXT1) rmf.$(EXT1) rmm.$(EXT1) scan.$(EXT1) \
29 send.$(EXT1) show.$(EXT1) slocal.$(EXT1) \
30 sortm.$(EXT1) vmh.$(EXT1) \
31 whatnow.$(EXT1) whom.$(EXT1) $(OPTIONS1) $(OPTIONS2)
32 man1 = ali anno burst comp dist folder forw inc mark mh-chart mh mhl \
35 mhparam mhpath msgchk msh next packf pick \
37 rcvstore refile repl rmf rmm scan send show slocal \
39 whom $(options1) $(options2)
40 inst-man1= inst-ali inst-anno inst-burst inst-comp inst-dist inst-folder \
41 inst-forw inst-inc inst-mark inst-mh-chart inst-mh inst-mhl \
42 inst-mhook inst-mhmail \
44 inst-mhparam inst-mhpath inst-msgchk inst-msh \
45 inst-next inst-packf inst-pick \
46 inst-prev inst-prompter \
47 inst-rcvstore inst-refile inst-repl inst-rmf inst-rmm \
48 inst-scan inst-send inst-show inst-slocal inst-sortm inst-vmh \
49 inst-whatnow inst-whom $(inst-options1) $(inst-options2)
50 Tman1 = ali.man anno.man burst.man comp.man dist.man folder.man \
51 forw.man inc.man mark.man mh-chart.man mh.man mhl.man \
52 mhook.man mhmail.man \
54 mhparam.man mhpath.man msgchk.man msh.man next.man packf.man \
55 pick.man prev.man prompter.man rcvstore.man \
56 refile.man repl.man rmf.man rmm.man scan.man send.man \
58 sortm.man vmh.man whatnow.man whom.man $(Toptions1) \
61 MAN5 = mh-alias.$(EXT5) mh-format.$(EXT5) mh-mail.$(EXT5) \
62 mh-profile.$(EXT5) mh-sequence.$(EXT5) mh-tailor.$(EXT5)
63 man5 = mh-alias mh-format mh-mail mh-profile mh-sequence mh-tailor
64 inst-man5= inst-mh-alias inst-mh-format inst-mh-mail inst-mh-profile \
65 inst-mh-sequence inst-mh-tailor
66 Tman5 = mh-alias.man mh-format.man mh-mail.man mh-profile.man \
67 mh-sequence.man mh-tailor.man
69 MAN8 = ap.$(EXT8) conflict.$(EXT8) dp.$(EXT8) install-mh.$(EXT8) \
70 post.$(EXT8) fmtdump.$(EXT8)
71 man8 = ap conflict dp install-mh \
73 inst-man8= inst-ap inst-conflict inst-dp inst-install-mh \
76 Tman8 = ap.man conflict.man dp.man install-mh.man \
81 ##############################################################################
83 ##############################################################################
85 .SUFFIXES: .me .cat .doc .man .imp
87 .me.cat:; itroff -t -me $< > $@
89 .me.doc:; nroff -Tlpr -me $< > $@
91 .me.man:; cat tmac.me $< | sed -f me2man.sed > $@
93 .cat.imp:; catimp -i $@ $<
96 ##############################################################################
97 # Generate MH manual entries
98 ##############################################################################
100 all: $(man1) $(man5) $(man8)
102 install: inst-all clean
104 inst-all: mkdirs inst-tmac \
105 $(inst-man1) $(inst-man5) $(inst-man8)
107 tar: $(Tman1) $(Tman5) $(Tman8)
108 @touch tmac.h $(Tman1) $(Tman5) $(Tman8)
109 @make -n inst-all > MAKEDOC
111 tar $(TFLAGS) MAKEDOC tmac.h $(Tman1) $(Tman5) $(Tman8)
114 uninstall:; cd $(MANDIR)/$(DIR1) ; rm -f $(MAN1)
115 cd $(MANDIR)/$(DIR5) ; rm -f $(MAN5)
116 cd $(MANDIR)/$(DIR8) ; rm -f $(MAN8)
119 ##############################################################################
120 # Generate MH User's Manual/Administrator's Guide
121 ##############################################################################
130 ##############################################################################
132 ##############################################################################
134 mkdirs: $(MANDIR)/$(DIR1) $(MANDIR)/$(DIR5) $(MANDIR)/$(DIR8)
136 $(MANDIR)/$(DIR1) $(MANDIR)/$(DIR5) $(MANDIR)/$(DIR8):
137 -mkdir $@ && chmod 0755 $@
140 inst-tmac: $(ETCDIR)/tmac.h
142 $(ETCDIR)/tmac.h: tmac.h
143 -$(REMOVE) $@ ztmac.h
145 -@chmod $(MANPROT) $@
150 inst-ali: $(MANDIR)/$(DIR1)/ali.$(EXT1)
152 $(MANDIR)/$(DIR1)/ali.$(EXT1): ali.man
153 -$(REMOVE) $@ zali.man
155 -@chmod $(MANPROT) $@
159 inst-anno: $(MANDIR)/$(DIR1)/anno.$(EXT1)
161 $(MANDIR)/$(DIR1)/anno.$(EXT1): anno.man
162 -$(REMOVE) $@ zanno.man
164 -@chmod $(MANPROT) $@
168 inst-ap: $(MANDIR)/$(DIR8)/ap.$(EXT8)
170 $(MANDIR)/$(DIR8)/ap.$(EXT8): ap.man
171 -$(REMOVE) $@ zap.man
173 -@chmod $(MANPROT) $@
177 inst-bbc: $(MANDIR)/$(DIR1)/bbc.$(EXT1)
179 $(MANDIR)/$(DIR1)/bbc.$(EXT1): bbc.man
180 -$(REMOVE) $@ zbbc.man
182 -@chmod $(MANPROT) $@
186 inst-bbl: $(MANDIR)/$(DIR1)/bbl.$(EXT1)
188 $(MANDIR)/$(DIR1)/bbl.$(EXT1): bbl.man
189 -$(REMOVE) $@ zbbl.man
191 -@chmod $(MANPROT) $@
195 inst-bbleader: $(MANDIR)/$(DIR1)/bbleader.$(EXT1)
197 $(MANDIR)/$(DIR1)/bbleader.$(EXT1): bbleader.man
198 -$(REMOVE) $@ zbbleader.man
200 -@chmod $(MANPROT) $@
204 inst-bboards: $(MANDIR)/$(DIR1)/bboards.$(EXT1)
206 $(MANDIR)/$(DIR1)/bboards.$(EXT1): bboards.man
207 -$(REMOVE) $@ zbboards.man
209 -@chmod $(MANPROT) $@
213 inst-burst: $(MANDIR)/$(DIR1)/burst.$(EXT1)
215 $(MANDIR)/$(DIR1)/burst.$(EXT1): burst.man
216 -$(REMOVE) $@ zburst.man
218 -@chmod $(MANPROT) $@
222 inst-cipher: $(MANDIR)/$(DIR1)/cipher.$(EXT1)
224 $(MANDIR)/$(DIR1)/cipher.$(EXT1): cipher.man
225 -$(REMOVE) $@ zcipher.man
227 -@chmod $(MANPROT) $@
231 inst-comp: $(MANDIR)/$(DIR1)/comp.$(EXT1)
233 $(MANDIR)/$(DIR1)/comp.$(EXT1): comp.man
234 -$(REMOVE) $@ zcomp.man
236 -@chmod $(MANPROT) $@
240 inst-conflict: $(MANDIR)/$(DIR8)/conflict.$(EXT8)
242 $(MANDIR)/$(DIR8)/conflict.$(EXT8): conflict.man
243 -$(REMOVE) $@ zconflict.man
245 -@chmod $(MANPROT) $@
249 inst-decipher: $(MANDIR)/$(DIR1)/decipher.$(EXT1)
251 $(MANDIR)/$(DIR1)/decipher.$(EXT1): decipher.man
252 -$(REMOVE) $@ zdecipher.man
254 -@chmod $(MANPROT) $@
258 inst-dist: $(MANDIR)/$(DIR1)/dist.$(EXT1)
260 $(MANDIR)/$(DIR1)/dist.$(EXT1): dist.man
261 -$(REMOVE) $@ zdist.man
263 -@chmod $(MANPROT) $@
267 inst-dp: $(MANDIR)/$(DIR8)/dp.$(EXT8)
269 $(MANDIR)/$(DIR8)/dp.$(EXT8): dp.man
270 -$(REMOVE) $@ zdp.man
272 -@chmod $(MANPROT) $@
276 inst-folder: $(MANDIR)/$(DIR1)/folder.$(EXT1)
278 $(MANDIR)/$(DIR1)/folder.$(EXT1): folder.man
279 -$(REMOVE) $@ zfolder.man
281 -@chmod $(MANPROT) $@
285 inst-fmtdump: $(MANDIR)/$(DIR8)/fmtdump.$(EXT8)
287 $(MANDIR)/$(DIR8)/fmtdump.$(EXT8): fmtdump.man
288 -$(REMOVE) $@ zfmtdump.man
290 -@chmod $(MANPROT) $@
294 inst-forw: $(MANDIR)/$(DIR1)/forw.$(EXT1)
296 $(MANDIR)/$(DIR1)/forw.$(EXT1): forw.man
297 -$(REMOVE) $@ zforw.man
299 -@chmod $(MANPROT) $@
303 inst-inc: $(MANDIR)/$(DIR1)/inc.$(EXT1)
305 $(MANDIR)/$(DIR1)/inc.$(EXT1): inc.man
306 -$(REMOVE) $@ zinc.man
308 -@chmod $(MANPROT) $@
312 inst-install-mh: $(MANDIR)/$(DIR8)/install-mh.$(EXT8)
314 $(MANDIR)/$(DIR8)/install-mh.$(EXT8): install-mh.man
315 -$(REMOVE) $@ zinstall-mh.man
317 -@chmod $(MANPROT) $@
321 inst-mark: $(MANDIR)/$(DIR1)/mark.$(EXT1)
323 $(MANDIR)/$(DIR1)/mark.$(EXT1): mark.man
324 -$(REMOVE) $@ zmark.man
326 -@chmod $(MANPROT) $@
330 inst-mh-alias: $(MANDIR)/$(DIR5)/mh-alias.$(EXT5)
332 $(MANDIR)/$(DIR5)/mh-alias.$(EXT5): mh-alias.man
333 -$(REMOVE) $@ zmh-alias.man
335 -@chmod $(MANPROT) $@
339 inst-mh-format: $(MANDIR)/$(DIR5)/mh-format.$(EXT5)
341 $(MANDIR)/$(DIR5)/mh-format.$(EXT5): mh-format.man
342 -$(REMOVE) $@ zmh-format.man
344 -@chmod $(MANPROT) $@
348 inst-mh-chart: $(MANDIR)/$(DIR1)/mh-chart.$(EXT1)
350 $(MANDIR)/$(DIR1)/mh-chart.$(EXT1): mh-chart.man
351 -$(REMOVE) $@ zmh-chart.man
353 -@chmod $(MANPROT) $@
357 inst-mh-mail: $(MANDIR)/$(DIR5)/mh-mail.$(EXT5)
359 $(MANDIR)/$(DIR5)/mh-mail.$(EXT5): mh-mail.man
360 -$(REMOVE) $@ zmh-mail.man
362 -@chmod $(MANPROT) $@
366 inst-mh-tailor: $(MANDIR)/$(DIR5)/mh-tailor.$(EXT5)
368 $(MANDIR)/$(DIR5)/mh-tailor.$(EXT5): mh-tailor.man
369 -$(REMOVE) $@ zmh-tailor.man
371 -@chmod $(MANPROT) $@
375 inst-mh-profile: $(MANDIR)/$(DIR5)/mh-profile.$(EXT5)
377 $(MANDIR)/$(DIR5)/mh-profile.$(EXT5): mh-profile.man
378 -$(REMOVE) $@ zmh-profile.man
380 -@chmod $(MANPROT) $@
384 inst-mh-sequence: $(MANDIR)/$(DIR5)/mh-sequence.$(EXT5)
386 $(MANDIR)/$(DIR5)/mh-sequence.$(EXT5): mh-sequence.man
387 -$(REMOVE) $@ zmh-sequence.man
388 cp mh-sequence.man $@
389 -@chmod $(MANPROT) $@
393 inst-mhook: $(MANDIR)/$(DIR1)/mhook.$(EXT1)
395 $(MANDIR)/$(DIR1)/mhook.$(EXT1): mhook.man
396 -$(REMOVE) $@ zmhook.man
398 -@chmod $(MANPROT) $@
402 inst-mh: $(MANDIR)/$(DIR1)/mh.$(EXT1)
404 $(MANDIR)/$(DIR1)/mh.$(EXT1): mh.man
405 -$(REMOVE) $@ zmh.man
407 -@chmod $(MANPROT) $@
411 inst-mhl: $(MANDIR)/$(DIR1)/mhl.$(EXT1)
413 $(MANDIR)/$(DIR1)/mhl.$(EXT1): mhl.man
414 -$(REMOVE) $@ zmhl.man
416 -@chmod $(MANPROT) $@
420 inst-mhmail: $(MANDIR)/$(DIR1)/mhmail.$(EXT1)
422 $(MANDIR)/$(DIR1)/mhmail.$(EXT1): mhmail.man
423 -$(REMOVE) $@ zmhmail.man
425 -@chmod $(MANPROT) $@
429 inst-mhn: $(MANDIR)/$(DIR1)/mhn.$(EXT1)
431 $(MANDIR)/$(DIR1)/mhn.$(EXT1): mhn.man
432 -$(REMOVE) $@ zmhn.man
434 -@chmod $(MANPROT) $@
438 inst-mhparam: $(MANDIR)/$(DIR1)/mhparam.$(EXT1)
440 $(MANDIR)/$(DIR1)/mhparam.$(EXT1): mhparam.man
441 -$(REMOVE) $@ zmhparam.man
443 -@chmod $(MANPROT) $@
447 inst-mhpath: $(MANDIR)/$(DIR1)/mhpath.$(EXT1)
449 $(MANDIR)/$(DIR1)/mhpath.$(EXT1): mhpath.man
450 -$(REMOVE) $@ zmhpath.man
452 -@chmod $(MANPROT) $@
456 inst-msgchk: $(MANDIR)/$(DIR1)/msgchk.$(EXT1)
458 $(MANDIR)/$(DIR1)/msgchk.$(EXT1): msgchk.man
459 -$(REMOVE) $@ zmsgchk.man
461 -@chmod $(MANPROT) $@
465 inst-msh: $(MANDIR)/$(DIR1)/msh.$(EXT1)
467 $(MANDIR)/$(DIR1)/msh.$(EXT1): msh.man
468 -$(REMOVE) $@ zmsh.man
470 -@chmod $(MANPROT) $@
474 inst-next: $(MANDIR)/$(DIR1)/next.$(EXT1)
476 $(MANDIR)/$(DIR1)/next.$(EXT1): next.man
477 -$(REMOVE) $@ znext.man
479 -@chmod $(MANPROT) $@
483 inst-packf: $(MANDIR)/$(DIR1)/packf.$(EXT1)
485 $(MANDIR)/$(DIR1)/packf.$(EXT1): packf.man
486 -$(REMOVE) $@ zpackf.man
488 -@chmod $(MANPROT) $@
492 inst-popauth: $(MANDIR)/$(DIR8)/popauth.$(EXT8)
494 $(MANDIR)/$(DIR8)/popauth.$(EXT8): popauth.man
495 -$(REMOVE) $@ zpopauth.man
497 -@chmod $(MANPROT) $@
501 inst-popi: $(MANDIR)/$(DIR1)/popi.$(EXT1)
503 $(MANDIR)/$(DIR1)/popi.$(EXT1): popi.man
504 -$(REMOVE) $@ zpopi.man
506 -@chmod $(MANPROT) $@
510 inst-pick: $(MANDIR)/$(DIR1)/pick.$(EXT1)
512 $(MANDIR)/$(DIR1)/pick.$(EXT1): pick.man
513 -$(REMOVE) $@ zpick.man
515 -@chmod $(MANPROT) $@
519 inst-post: $(MANDIR)/$(DIR8)/post.$(EXT8)
521 $(MANDIR)/$(DIR8)/post.$(EXT8): post.man
522 -$(REMOVE) $@ zpost.man
524 -@chmod $(MANPROT) $@
528 inst-prev: $(MANDIR)/$(DIR1)/prev.$(EXT1)
530 $(MANDIR)/$(DIR1)/prev.$(EXT1): prev.man
531 -$(REMOVE) $@ zprev.man
533 -@chmod $(MANPROT) $@
537 inst-prompter: $(MANDIR)/$(DIR1)/prompter.$(EXT1)
539 $(MANDIR)/$(DIR1)/prompter.$(EXT1): prompter.man
540 -$(REMOVE) $@ zprompter.man
542 -@chmod $(MANPROT) $@
546 inst-rcvstore: $(MANDIR)/$(DIR1)/rcvstore.$(EXT1)
548 $(MANDIR)/$(DIR1)/rcvstore.$(EXT1): rcvstore.man
549 -$(REMOVE) $@ zrcvstore.man
551 -@chmod $(MANPROT) $@
555 inst-refile: $(MANDIR)/$(DIR1)/refile.$(EXT1)
557 $(MANDIR)/$(DIR1)/refile.$(EXT1): refile.man
558 -$(REMOVE) $@ zrefile.man
560 -@chmod $(MANPROT) $@
564 inst-repl: $(MANDIR)/$(DIR1)/repl.$(EXT1)
566 $(MANDIR)/$(DIR1)/repl.$(EXT1): repl.man
567 -$(REMOVE) $@ zrepl.man
569 -@chmod $(MANPROT) $@
573 inst-rmm: $(MANDIR)/$(DIR1)/rmm.$(EXT1)
575 $(MANDIR)/$(DIR1)/rmm.$(EXT1): rmm.man
576 -$(REMOVE) $@ zrmm.man
578 -@chmod $(MANPROT) $@
582 inst-rmf: $(MANDIR)/$(DIR1)/rmf.$(EXT1)
584 $(MANDIR)/$(DIR1)/rmf.$(EXT1): rmf.man
585 -$(REMOVE) $@ zrmf.man
587 -@chmod $(MANPROT) $@
591 inst-scan: $(MANDIR)/$(DIR1)/scan.$(EXT1)
593 $(MANDIR)/$(DIR1)/scan.$(EXT1): scan.man
594 -$(REMOVE) $@ zscan.man
596 -@chmod $(MANPROT) $@
600 inst-send: $(MANDIR)/$(DIR1)/send.$(EXT1)
602 $(MANDIR)/$(DIR1)/send.$(EXT1): send.man
603 -$(REMOVE) $@ zsend.man
605 -@chmod $(MANPROT) $@
609 inst-show: $(MANDIR)/$(DIR1)/show.$(EXT1)
611 $(MANDIR)/$(DIR1)/show.$(EXT1): show.man
612 -$(REMOVE) $@ zshow.man
614 -@chmod $(MANPROT) $@
618 inst-slocal: $(MANDIR)/$(DIR1)/slocal.$(EXT1)
620 $(MANDIR)/$(DIR1)/slocal.$(EXT1): slocal.man
621 -$(REMOVE) $@ zslocal.man
623 -@chmod $(MANPROT) $@
627 inst-sortm: $(MANDIR)/$(DIR1)/sortm.$(EXT1)
629 $(MANDIR)/$(DIR1)/sortm.$(EXT1): sortm.man
630 -$(REMOVE) $@ zsortm.man
632 -@chmod $(MANPROT) $@
636 inst-tma: $(MANDIR)/$(DIR1)/tma.$(EXT1)
638 $(MANDIR)/$(DIR1)/tma.$(EXT1): tma.man
639 -$(REMOVE) $@ ztma.man
641 -@chmod $(MANPROT) $@
645 inst-vmh: $(MANDIR)/$(DIR1)/vmh.$(EXT1)
647 $(MANDIR)/$(DIR1)/vmh.$(EXT1): vmh.man
648 -$(REMOVE) $@ zvmh.man
650 -@chmod $(MANPROT) $@
654 inst-whatnow: $(MANDIR)/$(DIR1)/whatnow.$(EXT1)
656 $(MANDIR)/$(DIR1)/whatnow.$(EXT1): whatnow.man
657 -$(REMOVE) $@ zwhatnow.man
659 -@chmod $(MANPROT) $@
663 inst-whom: $(MANDIR)/$(DIR1)/whom.$(EXT1)
665 $(MANDIR)/$(DIR1)/whom.$(EXT1): whom.man
666 -$(REMOVE) $@ zwhom.man
668 -@chmod $(MANPROT) $@
673 ##############################################################################
675 ##############################################################################
682 bbleader: bbleader.man
687 conflict: conflict.man
688 decipher: decipher.man
695 install-mh: install-mh.man
697 mh-alias: mh-alias.man
698 mh-format: mh-format.man
699 mh-chart: mh-chart.man
701 mh-profile: mh-profile.man
702 mh-sequence: mh-sequence.man
703 mh-tailor: mh-tailor.man
720 prompter: prompter.man
721 rcvstore: rcvstore.man
736 MH.cat MH.doc: ali.me anno.me bbc.me bbl.me bbleader.me bboards.me comp.me \
737 dist.me folder.me forw.me inc.me mark.me mh-chart.me mh.me \
740 mhook.me mhparam.me mhpath.me msgchk.me msh.me \
741 next.me packf.me pick.me \
742 prev.me prompter.me \
743 rcvstore.me refile.me repl.me rmf.me rmm.me scan.me send.me \
745 sortm.me vmh.me whatnow.me whom.me mh-alias.me \
746 mh-format.me mh-mail.me mh-profile.me mh-sequence.me \
747 ap.me conflict.me dp.me install-mh.me fmtdump.me \
751 ADMIN.cat ADMIN.doc: \
752 mh-tailor.me mh-mts.me \
753 bboards5.me bbaka.me bbexp.me bboards8.me bbtar.me \
754 pop5.me pop8.me popaka.me \
761 ##############################################################################
762 # Miscellaneous tasks
763 ##############################################################################
768 cd ../config; make version
770 unconfig: distribution
771 -rm -f version.rf me2man.sed Makefile
777 -rm -f *.man *.doc *.cat *.imp
779 unclean:; -rm -f z* _* :* core MAKEDOC
784 ##############################################################################
785 # MODIFICATIONS -- Adding a new program (e.g., pickle [section n])
786 ##############################################################################
788 # Add pickle.$(EXT[N]) to MAN[N]
789 # Add pickle to man[n]
790 # Add inst-pickle to inst-man[n]
791 # Add pickle.man to Tman[n]
793 # Under the "MH manual entries" section, add this incantation
794 # inst-pickle: $(MANDIR)/$(DIR[n])/pickle.$(EXT[n])
796 # $(MANDIR)/$(DIR[n])/pickle.$(EXT[n]): pickle.man
797 # -$(REMOVE) $@ zpickle.man
799 # -@chmod $(MANPROT) $@
803 # Under the "Dependencies" section, add a line for pickle
806 # Add pickle.me to MH.cat