#
#	Aviation navigation program
#	Makefile for man pages
#	Makefile [1.6] from /preflight/src/nav/SCCS/man/s.Makefile
#		Retrieved 16:27:33 88/07/07; latest mod 16:03:45 88/07/07
#
#	Alan M. Marcum		marcum@nescorna.Sun.COM

.SUFFIXES:	.1 .1~ .5 .5~

MANS	= nav.1 nav.5 newvers.1 GetRelease.1 \
	  ReleaseHistory.5 LatestRelease.5 ReleaseMap.5

FILES	= $(MANS) Makefile
$PRINTFILES	= $(FILES)

REL	=
GFLAGS	= $(REL)

NROFF	= nroff
NROFFFLAGS	= -man
TROFF	= ptroff
TROFFFLAGS	= -man

all:	$(MANS)
	
SHAR:	nav.man.shar
	echo "Shell archive current as of `date`" >> $@

nav.man.shar:	$(FILES)
	shar $@ $(FILES)

clean:
	-rm -f a.out core *.BAK *.CKP SHAR nav.man.shar ,*

cleanall:	clean
	-sccs clean

print:	$(PRINTFILES)
	@echo Printing $?
	pr $? | lpr
	@echo `date` Printed $? >> print

printall: $(PRINTFILES)
	@echo Printing all
	pr $(PRINTFILES) | lpr
	@echo `date` Printed all >> print

.delta:
	-sccs delta `sccs tell -u` < $(RELBASE).com >> $(RELBASE).tmp
	sccs prs -d"Module: man/:M:	:I:	:D: :T:  :P:" -r SCCS >> \
		$(RELBASE).info

checkpoint:
	@echo -n "Enter SCCS comments: "
	@line > Make.CheckPoint.com
	$(MAKE) $(MFLAGS) .checkpoint SCCSCOMMENTS=Make.CheckPoint.com
	-rm Make.CheckPoint.com

.checkpoint:
	sccs tell -u > Make.CheckPoint.tmp
	-sccs deledit `cat Make.CheckPoint.tmp` < $(SCCSCOMMENTS)
	sleep 2
	-touch `cat Make.CheckPoint.tmp`
	-rm Make.CheckPoint.tmp

editall:
	sccs edit $(FILES) > /dev/null

getall:

