GNUmakefile
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# 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.
#
include $(ROOT)/usr/include/make/commondefs
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 *~