#
#	Aviation navigation program
#	Makefile for Header Files
#	Makefile [1.6] from /preflight/src/nav/SCCS/hdr/s.Makefile
#		Retrieved 16:26:29 88/07/07; latest mod 16:02:07 88/07/07
#	Alan M. Marcum		marcum@nescorna.Sun.COM
#	Robert J. Evans		pyramid!tolerant!procase!rje

HDR_SRCS	= NavFormat.h Nav.h NavGlobals.h
SRCS		= $(HDR_SRCS)

FILES		= $(SRCS) Makefile
PRINTFILES	= $(FILES)

REL	=
GFLAGS	= $(REL)

RELEASE_FILE	= ../release

all:	$(SRCS) NavVers.h

# If $(RELEASE_FILE) is not up-to-date, NavVers.h will be built
# twice.  Turns out this isn't a big issue, and is NOT a problem.
# But, it seems necessary if it is to be built when IT is out-of-date
# though $(RELEASE_FILE) is up-to-date.
NavVers.h:	$(RELEASE_FILE)
	sh ../newvers -n -r $(RELEASE_FILE)

$(RELEASE_FILE): ../newvers
	sh ../newvers -n -r $@

SHAR:	nav.hdr.shar
	echo "Shell archives current as of `date`" >> $@

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

clean:
	-rm -f NavVers.h core *.BAK *.CKP ,*

cleanall:	clean
	-rm -f print SHAR nav.hdr.shar
	-sccs clean

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

printall: $(PRINTFILES) NavVers.h
	@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: hdr/: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:
