3 EXTRA_DIST = README.jaxp texi2pod.pl $(man_MANS)
5 ## GCJ LOCAL: we don't want to install all of Classpath's info files.
6 ## info_TEXINFOS = cp-hacking.texinfo cp-vmintegration.texinfo cp-tools.texinfo
7 TEXINFO_TEX = ../../gcc/doc/include/texinfo.tex
8 info_TEXINFOS = cp-tools.texinfo
10 # POSIX locale necessary to make grep work; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586134
12 LC_ALL=POSIX texi2dvi --build-dir=$(builddir) -o $@ $<
17 docs: cp-hacking.ps cp-vmintegration.ps cp-tools.ps $(TOOLS_MANFILES)
19 man_MANS = $(TOOLS_MANFILES)
35 POD2MAN = pod2man --center="GNU" --release="$(VERSION)" --date=$(shell sed -n '1s/ .*//p' <$(srcdir)/../ChangeLog)
36 TEXI2POD = perl $(srcdir)/texi2pod.pl
37 STAMP = echo timestamp >
41 -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
42 mv -f $(@).T$$$$ $@) || \
43 (rm -f $(@).T$$$$ && exit 1)
45 .INTERMEDIATE: gappletviewer.pod gjarsigner.pod gjar.pod gjavah.pod \
46 gkeytool.pod gnative2ascii.pod gorbd.pod grmid.pod grmiregistry.pod \
47 gserialver.pod gtnameserv.pod gcjh.pod gjdoc.pod
49 gappletviewer.pod: $(srcdir)/cp-tools.texinfo
50 -$(TEXI2POD) -D gappletviewer < $< > $@
52 gjarsigner.pod: $(srcdir)/cp-tools.texinfo
53 -$(TEXI2POD) -D gjarsigner < $< > $@
55 gjar.pod: $(srcdir)/cp-tools.texinfo
56 -$(TEXI2POD) -D gjar < $< > $@
58 gcjh.pod: $(srcdir)/cp-tools.texinfo
59 -$(TEXI2POD) -D gcjh < $< > $@
61 gjavah.pod: $(srcdir)/cp-tools.texinfo
62 -$(TEXI2POD) -D gjavah < $< > $@
64 # hack around the cross references and the enumeration
65 gkeytool.pod: $(srcdir)/cp-tools.texinfo
66 -$(TEXI2POD) -D gkeytool < $< \
67 | sed -e 's/^For more details.*/See I<Common Options> for more details./' \
68 -e 's/1\.<\([^>]*\)>/- \1/' \
71 gnative2ascii.pod: $(srcdir)/cp-tools.texinfo
72 -$(TEXI2POD) -D gnative2ascii < $< > $@
74 gorbd.pod: $(srcdir)/cp-tools.texinfo
75 -$(TEXI2POD) -D gorbd < $< > $@
77 grmid.pod: $(srcdir)/cp-tools.texinfo
78 -$(TEXI2POD) -D grmid < $< > $@
80 grmiregistry.pod: $(srcdir)/cp-tools.texinfo
81 -$(TEXI2POD) -D grmiregistry < $< > $@
83 gserialver.pod: $(srcdir)/cp-tools.texinfo
84 -$(TEXI2POD) -D gserialver < $< > $@
86 gtnameserv.pod: $(srcdir)/cp-tools.texinfo
87 -$(TEXI2POD) -D gtnameserv < $< > $@
89 gjdoc.pod: $(srcdir)/cp-tools.texinfo
90 -$(TEXI2POD) -D gjdoc < $< > $@
93 #CLEANFILES = $(TOOLS_MANFILES)
96 # The following commands allow us to release tarballs with the man pages
97 # and info documentation prebuilt. This feature is enabled via
98 # --enable-generated-files-in-srcdir in the configure script.
101 STAMP_GENINSRC = stamp-geninsrc
106 all-local: $(STAMP_GENINSRC)
108 stamp-geninsrc: $(TOOLS_MANFILES) cp-tools.info
109 -cp -p gappletviewer.1 $(srcdir)/gappletviewer.1
110 -cp -p gjar.1 $(srcdir)/gjar.1
111 -cp -p gjarsigner.1 $(srcdir)/gjarsigner.1
112 -cp -p gjavah.1 $(srcdir)/gjavah.1
113 -cp -p gjdoc.1 $(srcdir)/gjdoc.1
114 -cp -p gkeytool.1 $(srcdir)/gkeytool.1
115 -cp -p gnative2ascii.1 $(srcdir)/gnative2ascii.1
116 -cp -p gorbd.1 $(srcdir)/gorbd.1
117 -cp -p grmid.1 $(srcdir)/grmid.1
118 -cp -p grmiregistry.1 $(srcdir)/grmiregistry.1
119 -cp -p gserialver.1 $(srcdir)/gserialver.1
120 -cp -p gtnameserv.1 $(srcdir)/gtnameserv.1
121 -cp -p cp-tools.info $(srcdir)/cp-tools.info
124 CLEANFILES = stamp-geninsrc cp-tools.info
125 MAINTAINERCLEANFILES = \
126 $(srcdir)/gappletviewer.1 \
128 $(srcdir)/gjarsigner.1 \
131 $(srcdir)/gkeytool.1 \
132 $(srcdir)/gnative2ascii.1 \
135 $(srcdir)/grmiregistry.1 \
136 $(srcdir)/gserialver.1 \
137 $(srcdir)/gtnameserv.1 \
138 $(srcdir)/cp-tools.info