summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 5ff03f09ee1701c80104f7f55f4dc4d4d0b5a961 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
SUBDIRS = api

EXTRA_DIST = README.jaxp texi2pod.pl

info_TEXINFOS = cp-hacking.texinfo cp-vmintegration.texinfo cp-tools.texinfo

.texinfo.dvi:
	texi2dvi $<

.dvi.ps:
	dvips -o $@ $<

docs: cp-hacking.ps cp-vmintegration.ps cp-tools.ps $(TOOLS_MANFILES)

man_MANS = $(TOOLS_MANFILES)
TOOLS_MANFILES = \
	gappletviewer.1 \
	gjar.1 \
	gjarsigner.1 \
	gjavah.1 \
	gcjh.1 \
	gkeytool.1 \
	gnative2ascii.1 \
	gorbd.1 \
	grmid.1 \
	grmiregistry.1 \
	gserialver.1 \
	gtnameserv.1 \
	gjdoc.1

POD2MAN = pod2man --center="GNU" --release="$(VERSION)"
TEXI2POD = perl $(srcdir)/texi2pod.pl
STAMP = echo timestamp >

.pod.1:
	$(STAMP) $@
	-($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
		mv -f $(@).T$$$$ $@) || \
		(rm -f $(@).T$$$$ && exit 1)

.INTERMEDIATE: gappletviewer.pod gjarsigner.pod gjar.pod gjavah.pod \
	gkeytool.pod gnative2ascii.pod gorbd.pod grmid.pod grmiregistry.pod \
	gserialver.pod gtnameserv.pod gcjh.pod gjdoc.pod

gappletviewer.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gappletviewer < $< > $@

gjarsigner.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gjarsigner < $< > $@

gjar.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gjar < $< > $@

gcjh.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gcjh < $< > $@

gjavah.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gjavah < $< > $@

# hack around the cross references and the enumeration
gkeytool.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gkeytool < $< \
	  | sed -e 's/^For more details.*/See I<Common Options> for more details./' \
	    -e 's/1\.<\([^>]*\)>/- \1/' \
		> $@

gnative2ascii.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gnative2ascii < $< > $@

gorbd.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gorbd < $< > $@

grmid.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D grmid < $< > $@

grmiregistry.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D grmiregistry < $< > $@

gserialver.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gserialver < $< > $@

gtnameserv.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gtnameserv < $< > $@

gjdoc.pod: $(srcdir)/cp-tools.texinfo
	-$(TEXI2POD) -D gjdoc < $< > $@

CLEANFILES = $(TOOLS_MANFILES)