view doc/Makefile @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children 441a2190cfae
line wrap: on
line source

##############################################################################
#    Instructions to Make, for generation of MH manual entries
#
#	This file is automatically generated.  Do not edit!
# @(#)$Id$
##############################################################################

BINDIR  =	$(DESTDIR)/usr/local/mh/bin
ETCDIR	=	$(DESTDIR)/usr/local/mh/lib
MANDIR	=	$(DESTDIR)/usr/local/man
DIR1	=	man1
EXT1	=	1
DIR5	=	man5
EXT5	=	5
DIR8	=	man8
EXT8	=	8
OPTIONS1=	bbc.$(EXT1)
options1=	bbc
inst-options1=	inst-bbc
Toptions1=	bbc.man
REMOVE	=	mv -f
MANPROT	=	0644

MAN1	=	ali.$(EXT1) anno.$(EXT1) burst.$(EXT1) comp.$(EXT1) \
		dist.$(EXT1) folder.$(EXT1) forw.$(EXT1) inc.$(EXT1) \
		mark.$(EXT1) mh-chart.$(EXT1) mh.$(EXT1) mhl.$(EXT1) \
		mhook.$(EXT1) mhmail.$(EXT1) \
		mhn.$(EXT1) \
		mhparam.$(EXT1) mhpath.$(EXT1) msgchk.$(EXT1) \
		msh.$(EXT1) next.$(EXT1) packf.$(EXT1) \
		pick.$(EXT1) \
		prev.$(EXT1) prompter.$(EXT1) rcvstore.$(EXT1) refile.$(EXT1) \
		repl.$(EXT1) rmf.$(EXT1) rmm.$(EXT1) scan.$(EXT1) \
		send.$(EXT1) show.$(EXT1) slocal.$(EXT1) \
		sortm.$(EXT1) vmh.$(EXT1) \
		whatnow.$(EXT1) whom.$(EXT1) $(OPTIONS1)  $(OPTIONS2)
man1	=	ali anno burst comp dist folder forw inc mark mh-chart mh mhl \
		mhook mhmail \
		mhn \
		mhparam mhpath msgchk msh next packf \
		pick \
		prev prompter \
		rcvstore refile repl rmf rmm scan send show slocal \
		sortm vmh whatnow \
		whom $(options1) $(options2)
inst-man1=	inst-ali inst-anno inst-burst inst-comp inst-dist inst-folder \
		inst-forw inst-inc inst-mark inst-mh-chart inst-mh inst-mhl \
		inst-mhook inst-mhmail \
		inst-mhn \
		inst-mhparam inst-mhpath inst-msgchk inst-msh \
		inst-next inst-packf \
		inst-pick \
		inst-prev inst-prompter \
		inst-rcvstore inst-refile inst-repl inst-rmf inst-rmm \
		inst-scan inst-send inst-show inst-slocal inst-sortm inst-vmh \
		inst-whatnow inst-whom $(inst-options1) $(inst-options2)
Tman1	=	ali.man anno.man burst.man comp.man dist.man folder.man \
		forw.man inc.man mark.man mh-chart.man mh.man mhl.man \
		mhook.man mhmail.man \
		mhn.man \
		mhparam.man mhpath.man msgchk.man msh.man next.man packf.man \
		pick.man prev.man prompter.man rcvstore.man \
		refile.man repl.man rmf.man rmm.man scan.man send.man \
		show.man slocal.man \
		sortm.man vmh.man whatnow.man whom.man $(Toptions1) \
		$(Toptions2)

MAN5	=	mh-alias.$(EXT5) mh-format.$(EXT5) mh-mail.$(EXT5) \
		mh-profile.$(EXT5) mh-sequence.$(EXT5) mh-tailor.$(EXT5)
man5	=	mh-alias mh-format mh-mail mh-profile mh-sequence mh-tailor 
inst-man5=	inst-mh-alias inst-mh-format inst-mh-mail inst-mh-profile \
		inst-mh-sequence inst-mh-tailor 
Tman5	=	mh-alias.man mh-format.man mh-mail.man mh-profile.man \
		mh-sequence.man mh-tailor.man 

MAN8	=	ap.$(EXT8) conflict.$(EXT8) dp.$(EXT8) install-mh.$(EXT8) \
		post.$(EXT8) fmtdump.$(EXT8) 
man8	=	ap conflict dp install-mh \
		post fmtdump 
inst-man8=	inst-ap inst-conflict inst-dp inst-install-mh \
		inst-post \
		inst-fmtdump 
Tman8	=	ap.man conflict.man dp.man install-mh.man \
		post.man \
		fmtdump.man 

jman1=
inst-jman1=
jman5=
inst-jman5=
jman8=
inst-jman8=


##############################################################################
#	Generation Rules
##############################################################################

.SUFFIXES:	.me .cat .doc .man .imp

.me.cat:;	itroff -t -me $< > $@

.me.doc:;	nroff -Tlpr -me $< > $@

.me.man:;	cat tmac.me $< | sed -f me2man.sed  > $@

.cat.imp:;	catimp -i $@ $<


##############################################################################
#	Generate MH manual entries
##############################################################################

all:		 $(man1) $(man5) $(man8) $(jman1) $(jman5) $(jman8)

install:	inst-all clean

inst-all:	 mkdirs inst-tmac \
			$(inst-man1) $(inst-man5) $(inst-man8) \
			$(inst-jman1) $(inst-jman5) $(inst-jman8)

tar:		 $(Tman1) $(Tman5) $(Tman8)
		 @touch tmac.h $(Tman1) $(Tman5) $(Tman8)
		 @make -n inst-all > MAKEDOC
		 @chmod +x MAKEDOC
		 tar $(TFLAGS) MAKEDOC tmac.h $(Tman1) $(Tman5) $(Tman8)
		 @rm -f MAKEDOC

uninstall:;	cd $(MANDIR)/$(DIR1) ; rm -f $(MAN1) 
		cd $(MANDIR)/$(DIR5) ; rm -f $(MAN5)
		cd $(MANDIR)/$(DIR8) ; rm -f $(MAN8)


##############################################################################
#	Generate MH User's Manual/Administrator's Guide
##############################################################################

manual:		MH.doc

guide:		ADMIN.doc

true:;


##############################################################################
#	MH manual entries
##############################################################################

mkdirs:		$(MANDIR)/$(DIR1) $(MANDIR)/$(DIR5) $(MANDIR)/$(DIR8)

$(MANDIR)/$(DIR1) $(MANDIR)/$(DIR5) $(MANDIR)/$(DIR8):
		-sh ../install-sh -d $@


inst-tmac:	$(ETCDIR)/tmac.h

$(ETCDIR)/tmac.h:	tmac.h
		-$(REMOVE) $@ ztmac.h
		cp tmac.h $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""


inst-ali:	$(MANDIR)/$(DIR1)/ali.$(EXT1)

$(MANDIR)/$(DIR1)/ali.$(EXT1):	ali.man
		-$(REMOVE) $@ zali.man
		cp ali.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-anno:	$(MANDIR)/$(DIR1)/anno.$(EXT1)

$(MANDIR)/$(DIR1)/anno.$(EXT1):	anno.man
		-$(REMOVE) $@ zanno.man
		cp anno.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-ap:	$(MANDIR)/$(DIR8)/ap.$(EXT8)

$(MANDIR)/$(DIR8)/ap.$(EXT8):	ap.man
		-$(REMOVE) $@ zap.man
		cp ap.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-bbc:	$(MANDIR)/$(DIR1)/bbc.$(EXT1)

$(MANDIR)/$(DIR1)/bbc.$(EXT1):	bbc.man
		-$(REMOVE) $@ zbbc.man
		cp bbc.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-bbl:	$(MANDIR)/$(DIR1)/bbl.$(EXT1)

$(MANDIR)/$(DIR1)/bbl.$(EXT1):	bbl.man
		-$(REMOVE) $@ zbbl.man
		cp bbl.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-bbleader:	$(MANDIR)/$(DIR1)/bbleader.$(EXT1)

$(MANDIR)/$(DIR1)/bbleader.$(EXT1):	bbleader.man
		-$(REMOVE) $@ zbbleader.man
		cp bbleader.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-bboards:	$(MANDIR)/$(DIR1)/bboards.$(EXT1)

$(MANDIR)/$(DIR1)/bboards.$(EXT1):	bboards.man
		-$(REMOVE) $@ zbboards.man
		cp bboards.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-burst:	$(MANDIR)/$(DIR1)/burst.$(EXT1)

$(MANDIR)/$(DIR1)/burst.$(EXT1):	burst.man
		-$(REMOVE) $@ zburst.man
		cp burst.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-cipher:	$(MANDIR)/$(DIR1)/cipher.$(EXT1)

$(MANDIR)/$(DIR1)/cipher.$(EXT1):	cipher.man
		-$(REMOVE) $@ zcipher.man
		cp cipher.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-comp:	$(MANDIR)/$(DIR1)/comp.$(EXT1)

$(MANDIR)/$(DIR1)/comp.$(EXT1):	comp.man
		-$(REMOVE) $@ zcomp.man
		cp comp.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-conflict:	$(MANDIR)/$(DIR8)/conflict.$(EXT8)

$(MANDIR)/$(DIR8)/conflict.$(EXT8):	conflict.man
		-$(REMOVE) $@ zconflict.man
		cp conflict.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-decipher:	$(MANDIR)/$(DIR1)/decipher.$(EXT1)

$(MANDIR)/$(DIR1)/decipher.$(EXT1):	decipher.man
		-$(REMOVE) $@ zdecipher.man
		cp decipher.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-dist:	$(MANDIR)/$(DIR1)/dist.$(EXT1)

$(MANDIR)/$(DIR1)/dist.$(EXT1):	dist.man
		-$(REMOVE) $@ zdist.man
		cp dist.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-dp:	$(MANDIR)/$(DIR8)/dp.$(EXT8)

$(MANDIR)/$(DIR8)/dp.$(EXT8):	dp.man
		-$(REMOVE) $@ zdp.man
		cp dp.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-folder:	$(MANDIR)/$(DIR1)/folder.$(EXT1)

$(MANDIR)/$(DIR1)/folder.$(EXT1):	folder.man
		-$(REMOVE) $@ zfolder.man
		cp folder.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-fmtdump:	$(MANDIR)/$(DIR8)/fmtdump.$(EXT8)

$(MANDIR)/$(DIR8)/fmtdump.$(EXT8):	fmtdump.man
		-$(REMOVE) $@ zfmtdump.man
		cp fmtdump.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-forw:	$(MANDIR)/$(DIR1)/forw.$(EXT1)

$(MANDIR)/$(DIR1)/forw.$(EXT1):	forw.man
		-$(REMOVE) $@ zforw.man
		cp forw.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-inc:	$(MANDIR)/$(DIR1)/inc.$(EXT1)

$(MANDIR)/$(DIR1)/inc.$(EXT1):	inc.man
		-$(REMOVE) $@ zinc.man
		cp inc.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-install-mh: $(MANDIR)/$(DIR8)/install-mh.$(EXT8)

$(MANDIR)/$(DIR8)/install-mh.$(EXT8): install-mh.man
		-$(REMOVE) $@ zinstall-mh.man
		cp install-mh.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mark:	$(MANDIR)/$(DIR1)/mark.$(EXT1)

$(MANDIR)/$(DIR1)/mark.$(EXT1):	mark.man
		-$(REMOVE) $@ zmark.man
		cp mark.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-alias:	$(MANDIR)/$(DIR5)/mh-alias.$(EXT5)

$(MANDIR)/$(DIR5)/mh-alias.$(EXT5):	mh-alias.man
		-$(REMOVE) $@ zmh-alias.man
		cp mh-alias.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-format:	$(MANDIR)/$(DIR5)/mh-format.$(EXT5)

$(MANDIR)/$(DIR5)/mh-format.$(EXT5):	mh-format.man
		-$(REMOVE) $@ zmh-format.man
		cp mh-format.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-chart:	$(MANDIR)/$(DIR1)/mh-chart.$(EXT1)

$(MANDIR)/$(DIR1)/mh-chart.$(EXT1):	mh-chart.man
		-$(REMOVE) $@ zmh-chart.man
		cp mh-chart.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-mail:	$(MANDIR)/$(DIR5)/mh-mail.$(EXT5)

$(MANDIR)/$(DIR5)/mh-mail.$(EXT5):	mh-mail.man
		-$(REMOVE) $@ zmh-mail.man
		cp mh-mail.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-tailor:	$(MANDIR)/$(DIR5)/mh-tailor.$(EXT5)

$(MANDIR)/$(DIR5)/mh-tailor.$(EXT5):	mh-tailor.man
		-$(REMOVE) $@ zmh-tailor.man
		cp mh-tailor.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-profile:	$(MANDIR)/$(DIR5)/mh-profile.$(EXT5)

$(MANDIR)/$(DIR5)/mh-profile.$(EXT5):	mh-profile.man
		-$(REMOVE) $@ zmh-profile.man
		cp mh-profile.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh-sequence:	$(MANDIR)/$(DIR5)/mh-sequence.$(EXT5)

$(MANDIR)/$(DIR5)/mh-sequence.$(EXT5):	mh-sequence.man
		-$(REMOVE) $@ zmh-sequence.man
		cp mh-sequence.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mhook:	$(MANDIR)/$(DIR1)/mhook.$(EXT1)

$(MANDIR)/$(DIR1)/mhook.$(EXT1):	mhook.man
		-$(REMOVE) $@ zmhook.man
		cp mhook.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mh:	$(MANDIR)/$(DIR1)/mh.$(EXT1)

$(MANDIR)/$(DIR1)/mh.$(EXT1):	mh.man
		-$(REMOVE) $@ zmh.man
		cp mh.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mhl:	$(MANDIR)/$(DIR1)/mhl.$(EXT1)

$(MANDIR)/$(DIR1)/mhl.$(EXT1):	mhl.man
		-$(REMOVE) $@ zmhl.man
		cp mhl.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mhmail:	$(MANDIR)/$(DIR1)/mhmail.$(EXT1)

$(MANDIR)/$(DIR1)/mhmail.$(EXT1):	mhmail.man
		-$(REMOVE) $@ zmhmail.man
		cp mhmail.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mhn:	$(MANDIR)/$(DIR1)/mhn.$(EXT1)

$(MANDIR)/$(DIR1)/mhn.$(EXT1):	mhn.man
		-$(REMOVE) $@ zmhn.man
		cp mhn.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mhparam:	$(MANDIR)/$(DIR1)/mhparam.$(EXT1)

$(MANDIR)/$(DIR1)/mhparam.$(EXT1):	mhparam.man
		-$(REMOVE) $@ zmhparam.man
		cp mhparam.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-mhpath:	$(MANDIR)/$(DIR1)/mhpath.$(EXT1)

$(MANDIR)/$(DIR1)/mhpath.$(EXT1):	mhpath.man
		-$(REMOVE) $@ zmhpath.man
		cp mhpath.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-msgchk:	$(MANDIR)/$(DIR1)/msgchk.$(EXT1)

$(MANDIR)/$(DIR1)/msgchk.$(EXT1):	msgchk.man
		-$(REMOVE) $@ zmsgchk.man
		cp msgchk.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-msh:	$(MANDIR)/$(DIR1)/msh.$(EXT1)

$(MANDIR)/$(DIR1)/msh.$(EXT1):	msh.man
		-$(REMOVE) $@ zmsh.man
		cp msh.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-next:	$(MANDIR)/$(DIR1)/next.$(EXT1)

$(MANDIR)/$(DIR1)/next.$(EXT1):	next.man
		-$(REMOVE) $@ znext.man
		cp next.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-packf:	$(MANDIR)/$(DIR1)/packf.$(EXT1)

$(MANDIR)/$(DIR1)/packf.$(EXT1):	packf.man
		-$(REMOVE) $@ zpackf.man
		cp packf.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-pgped:	$(MANDIR)/$(DIR1)/pgped.$(EXT1)

$(MANDIR)/$(DIR1)/pgped.$(EXT1):	pgped.man
		-$(REMOVE) $@ zpgped.man
		cp pgped.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-popauth:	$(MANDIR)/$(DIR8)/popauth.$(EXT8)

$(MANDIR)/$(DIR8)/popauth.$(EXT8):	popauth.man
		-$(REMOVE) $@ zpopauth.man
		cp popauth.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-popd:	$(MANDIR)/$(DIR8)/popd.$(EXT8)

$(MANDIR)/$(DIR8)/popd.$(EXT8):	popd.man
		-$(REMOVE) $@ zpopd.man
		cp popd.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-popi:	$(MANDIR)/$(DIR1)/popi.$(EXT1)

$(MANDIR)/$(DIR1)/popi.$(EXT1):	popi.man
		-$(REMOVE) $@ zpopi.man
		cp popi.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-pick:	$(MANDIR)/$(DIR1)/pick.$(EXT1)

$(MANDIR)/$(DIR1)/pick.$(EXT1):	pick.man
		-$(REMOVE) $@ zpick.man
		cp pick.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-post:	$(MANDIR)/$(DIR8)/post.$(EXT8)

$(MANDIR)/$(DIR8)/post.$(EXT8):	post.man
		-$(REMOVE) $@ zpost.man
		cp post.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-prev:	$(MANDIR)/$(DIR1)/prev.$(EXT1)

$(MANDIR)/$(DIR1)/prev.$(EXT1):	prev.man
		-$(REMOVE) $@ zprev.man
		cp prev.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-prompter:	$(MANDIR)/$(DIR1)/prompter.$(EXT1)

$(MANDIR)/$(DIR1)/prompter.$(EXT1):	prompter.man
		-$(REMOVE) $@ zprompter.man
		cp prompter.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-rcvstore:	$(MANDIR)/$(DIR1)/rcvstore.$(EXT1)

$(MANDIR)/$(DIR1)/rcvstore.$(EXT1):	rcvstore.man
		-$(REMOVE) $@ zrcvstore.man
		cp rcvstore.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-refile:	$(MANDIR)/$(DIR1)/refile.$(EXT1)

$(MANDIR)/$(DIR1)/refile.$(EXT1):	refile.man
		-$(REMOVE) $@ zrefile.man
		cp refile.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-repl:	$(MANDIR)/$(DIR1)/repl.$(EXT1)

$(MANDIR)/$(DIR1)/repl.$(EXT1):	repl.man
		-$(REMOVE) $@ zrepl.man
		cp repl.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-rmm:	$(MANDIR)/$(DIR1)/rmm.$(EXT1)

$(MANDIR)/$(DIR1)/rmm.$(EXT1):	rmm.man
		-$(REMOVE) $@ zrmm.man
		cp rmm.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-rmf:	$(MANDIR)/$(DIR1)/rmf.$(EXT1)

$(MANDIR)/$(DIR1)/rmf.$(EXT1):	rmf.man
		-$(REMOVE) $@ zrmf.man
		cp rmf.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-scan:	$(MANDIR)/$(DIR1)/scan.$(EXT1)

$(MANDIR)/$(DIR1)/scan.$(EXT1):	scan.man
		-$(REMOVE) $@ zscan.man
		cp scan.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-send:	$(MANDIR)/$(DIR1)/send.$(EXT1)

$(MANDIR)/$(DIR1)/send.$(EXT1):	send.man
		-$(REMOVE) $@ zsend.man
		cp send.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-show:	$(MANDIR)/$(DIR1)/show.$(EXT1)

$(MANDIR)/$(DIR1)/show.$(EXT1):	show.man
		-$(REMOVE) $@ zshow.man
		cp show.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-slocal:	$(MANDIR)/$(DIR1)/slocal.$(EXT1)

$(MANDIR)/$(DIR1)/slocal.$(EXT1):	slocal.man
		-$(REMOVE) $@ zslocal.man
		cp slocal.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-sortm:	$(MANDIR)/$(DIR1)/sortm.$(EXT1)

$(MANDIR)/$(DIR1)/sortm.$(EXT1):	sortm.man
		-$(REMOVE) $@ zsortm.man
		cp sortm.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-tma:	$(MANDIR)/$(DIR1)/tma.$(EXT1)

$(MANDIR)/$(DIR1)/tma.$(EXT1):	tma.man
		-$(REMOVE) $@ ztma.man
		cp tma.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-vmh:	$(MANDIR)/$(DIR1)/vmh.$(EXT1)

$(MANDIR)/$(DIR1)/vmh.$(EXT1):	vmh.man
		-$(REMOVE) $@ zvmh.man
		cp vmh.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-whatnow:	$(MANDIR)/$(DIR1)/whatnow.$(EXT1)

$(MANDIR)/$(DIR1)/whatnow.$(EXT1):	whatnow.man
		-$(REMOVE) $@ zwhatnow.man
		cp whatnow.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""

inst-whom:	$(MANDIR)/$(DIR1)/whom.$(EXT1)

$(MANDIR)/$(DIR1)/whom.$(EXT1):	whom.man
		-$(REMOVE) $@ zwhom.man
		cp whom.man $@
		-@chmod $(MANPROT) $@
		-@ls -l $@
		-@echo ""


##############################################################################
#	Dependencies
##############################################################################

ali:		ali.man
anno:		anno.man
ap:		ap.man
bbc:		bbc.man
bbl:		bbl.man
bbleader:	bbleader.man
bboards:	bboards.man
burst:		burst.man
cipher:		cipher.man
comp:		comp.man
conflict:	conflict.man
decipher:	decipher.man
dist:		dist.man
dp:		dp.man
fmtdump:	fmtdump.man
folder:		folder.man
forw:		forw.man
inc:		inc.man
install-mh:	install-mh.man
mark:		mark.man
mh-alias:	mh-alias.man
mh-format:	mh-format.man
mh-chart:	mh-chart.man
mh-mail:	mh-mail.man
mh-profile:	mh-profile.man
mh-sequence:	mh-sequence.man
mh-tailor:	mh-tailor.man
mhook:		mhook.man
mh:		mh.man
mhl:		mhl.man
mhmail:		mhmail.man
mhparam:	mhparam.man
mhpath:		mhpath.man
mhn:		mhn.man
msgchk:		msgchk.man
msh:		msh.man
next:		next.man
packf:		packf.man
pgped:		pgped.man
pick:		pick.man
popauth:	popauth.man
popd:		popd.man
popi:		popi.man
post:		post.man
prev:		prev.man
prompter:	prompter.man
rcvstore:	rcvstore.man
refile:		refile.man
repl:		repl.man
rmf:		rmf.man
rmm:		rmm.man
scan:		scan.man
send:		send.man
show:		show.man
slocal:		slocal.man
sortm:		sortm.man
tma:		tma.man
vmh:		vmh.man
whatnow:	whatnow.man
whom:		whom.man

MH.cat MH.doc:	ali.me anno.me bbc.me bbl.me bbleader.me bboards.me comp.me \
		dist.me folder.me forw.me inc.me mark.me mh-chart.me mh.me \
		mhl.me mhmail.me \
		mhn.me \
		mhook.me mhparam.me mhpath.me msgchk.me msh.me \
		next.me packf.me pick.me \
		prev.me prompter.me \
		rcvstore.me refile.me repl.me rmf.me rmm.me scan.me send.me \
		show.me slocal.me \
		sortm.me vmh.me whatnow.me whom.me mh-alias.me \
		mh-format.me mh-mail.me mh-profile.me mh-sequence.me \
		ap.me conflict.me dp.me install-mh.me fmtdump.me \
		post.me \
		version.rf

ADMIN.cat ADMIN.doc: \
		mh-tailor.me mh-mts.me \
		bboards5.me bbaka.me bbexp.me bboards8.me bbtar.me \
		pop5.me pop8.me popaka.me \
		popd.me popwrd.me \
		mf.me rmail.me \
		mh-hack.me \
		version.rf


##############################################################################
#	Miscellaneous tasks
##############################################################################

lint:;		

version.rf:
		cd ../config; make version

unconfig:	distribution
		-rm -f version.rf me2man.sed Makefile

distribution:	clean
		-rm -f *.me tmac.h

clean:		unclean
		-rm -f *.man *.doc *.cat *.imp

unclean:;	-rm -f z* _* :* core *.core MAKEDOC

depend:;


##############################################################################
#  MODIFICATIONS -- Adding a new program (e.g., pickle [section n])
##############################################################################

#    Add pickle.$(EXT[N]) to MAN[N]
#    Add pickle to man[n]
#    Add inst-pickle to inst-man[n]
#    Add pickle.man to Tman[n]
#
#    Under the "MH manual entries" section, add this incantation
#	inst-pickle:	$(MANDIR)/$(DIR[n])/pickle.$(EXT[n])
#	
#	$(MANDIR)/$(DIR[n])/pickle.$(EXT[n]):	pickle.man
#			-$(REMOVE) $@ zpickle.man
#			cp pickle.man $@
#			-@chmod $(MANPROT) $@
#			-@ls -l $@
#			-@echo ""
#
#    Under the "Dependencies" section, add a line for pickle
#	pickle:		pickle.man
#
#    Add pickle.me to MH.cat