Makefile 1.38 KB
#
# Makefile for the RSP Programming Guide
#
# Targets to update the FrameMaker book file and create
# .ps versions.
#
# These targets DO NOT check in the updated files; this could
# mean that the checked-in files need to be 'generated'. If you
# print the .ps version built here, you should have no problem,
# however.
#

BOOK_FILE =	RSPProgGuide

#
# These files are *not* generated by a build, they must
# be moved to the ./ps directory by hand, when you want
# to freeze a version for the release.
#
PSFILES	=	./ps/RSPProgGuide.ps ./ps/RSPRefCard.ps

# default does nothing, because the FrameMaker builds can't
# be built on every machine.
default:

install:
	$(INSTALL) -m 444 -F /usr/src/PR/doc $(PSFILES)

#
# update the book
#
update:
	p_tupdate
	chmod ug+w *.book *.doc *TOC.doc *LOF.doc *LOT.doc *IX.doc
	/usr/frame/bin/fmbatch scripts/update.script
	chmod ug-w *.book *.doc *TOC.doc *LOF.doc *LOT.doc *IX.doc

#
# create $(BOOK_FILE).ps
#
ps:	update
	p_tupdate
	chmod ug+w *.book *.doc *TOC.doc *LOF.doc *LOT.doc *IX.doc
	/usr/frame/bin/fmbatch scripts/ps.script
	chmod ug-w *.book *.doc *TOC.doc *LOF.doc *LOT.doc *IX.doc

refcard: update
	p_tupdate
	chmod ug+w *.book *.doc *TOC.doc *LOF.doc *LOT.doc *IX.doc
	/usr/frame/bin/fmbatch scripts/refcard.script
	chmod ug-w *.book *.doc *TOC.doc *LOF.doc *LOT.doc *IX.doc

#
# do everything
#
all:	update ps refcard

clean clobber:
	/bin/rm -f *.ps *.backup *~