
# HPUX_ID: @(#)29.1   86/07/04
#          @(#)Makefile	29.1      86/07/02
#	Makefile for the notesfile manual pages
#	March 29, 1982
#	Ray Essick, University of Illinois
#	uiucdcs!essick      uiucdcs!notes
#
#	If the "man" pages for your system have been moved, check
#	the MAN variable below.
#

SHELL	= /bin/sh

DISTDIR	= p:/usr/src/uiuc/notesfiles
DCP	= rcp

# These man pages actually contain text.
#
SEC1	= notes.1 checknotes.1 nfstats.1
SEC3	= nfabort.3 nfcomment.3
SEC5	= notesrc.5
SEC8	= mknf.8 nfrcv.8 newsoutput.8 nfarchive.8 nfdump.8 recnotes.8 \
	sendbatch.8

# The following pages are "pointers" to the real pages (above).  They are
#   created by this makefile, and consist of a single ".so" command
#
#     autoseq.1 newsinput.8 rmnf.8 seqset.8 newbatch.8

FILES	= $(SEC1) $(SEC3) $(SEC8)

OTHERS	= Makefile getdate.3 rscript
MAN	= /usr/contrib/man
TROFF	= troff

all:
	for i in ${FILES}; do \
		echo $$i; $(TROFF) -man $$i; done

clean:

install: isec1 isec3 isec5 isec8
	touch install

isec1:	$(SEC1)
	cp $? $(MAN)/man1/.
	echo ".so $(MAN)/man1/notes.1" > $(MAN)/man1/autoseq.1
	touch isec1

isec3:	$(SEC3)
	cp $? $(MAN)/man3/.
	touch isec3

isec5:	$(SEC5)
	cp $? $(MAN)/man5/.
	touch isec5

isec8:	$(SEC8)
	cp $? $(MAN)/man8/.
	echo ".so $(MAN)/man8/newsoutput.8" > $(MAN)/man8/newsinput.8
	echo ".so $(MAN)/man8/newsoutput.8" > $(MAN)/man8/seqset.8
	echo ".so $(MAN)/man8/mknf.8"       > $(MAN)/man8/rmnf.8
	echo ".so $(MAN)/man8/sendbatch.8"  > $(MAN)/man8/newbatch.8
	touch isec8

ar:	$(FILES)
	ar r ../Page.a $(FILES)
	touch ar

dist:	$(FILES) $(OTHERS)
	${DCP} $? $(DISTDIR)/man/.
	touch dist

#	remote man page installation - U of Illinois DCS specific
#           (does not install the "pointer" man pages -- w. underwood 11/4/85)

RSYS	= a b d e f g h i p
rinstall: $(SEC1) $(SEC3) $(SEC3) $(SEC8)
	rscript $(RSYS)
	touch rinstall
