fd975604c2
2007-03-10 Matthias Klose <doko@ubuntu.com> * configure.ac: New configure option --enable-generated-files-in-srcdir. * doc/Makefile.am: Add support to generate files in srcdir, install the cp-tools documentation in info format. * configure: Regenerate. * native/jni/classpath/Makefile.in, native/jni/midi-dssi/Makefile.in, native/jni/Makefile.in, native/jni/gconf-peer/Makefile.in, native/jni/java-io/Makefile.in, native/jni/native-lib/Makefile.in, native/jni/java-util/Makefile.in, native/jni/java-lang/Makefile.in, native/jni/midi-alsa/Makefile.in, native/jni/java-nio/Makefile.in, native/jni/java-net/Makefile.in, native/jni/xmlj/Makefile.in, native/jni/qt-peer/Makefile.in, native/jni/gtk-peer/Makefile.in, native/Makefile.in, native/jawt/Makefile.in, native/fdlibm/Makefile.in, native/plugin/Makefile.in, resource/Makefile.in, scripts/Makefile.in, tools/Makefile.in, doc/Makefile.in, doc/api/Makefile.in, lib/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in, external/jsr166/Makefile.in, external/relaxngDatatype/Makefile.in, include/Makefile.in, examples/Makefile.in: Regenerate. From-SVN: r123050
139 lines
3.7 KiB
Makefile
139 lines
3.7 KiB
Makefile
SUBDIRS = api
|
|
|
|
EXTRA_DIST = README.jaxp $(man_MANS)
|
|
|
|
## GCJ LOCAL: we don't want to install all of Classpath's info files.
|
|
## info_TEXINFOS = cp-hacking.texinfo cp-vmintegration.texinfo cp-tools.texinfo
|
|
TEXINFO_TEX = ../../gcc/doc/include/texinfo.tex
|
|
info_TEXINFOS = cp-tools.texinfo
|
|
cp_tools_TEXINFOS = gcc-vers.texi
|
|
|
|
%.dvi : %.texinfo
|
|
texi2dvi $<
|
|
|
|
%.ps : %.dvi
|
|
dvips -o $@ $<
|
|
|
|
docs: cp-hacking.ps cp-vmintegration.ps cp-tools.ps
|
|
install-data-local: install-info
|
|
|
|
man_MANS = $(TOOLS_MANFILES)
|
|
TOOLS_MANFILES = \
|
|
gappletviewer.1 \
|
|
gjar.1 \
|
|
gjarsigner.1 \
|
|
gjavah.1 \
|
|
gkeytool.1 \
|
|
gnative2ascii.1 \
|
|
gorbd.1 \
|
|
grmid.1 \
|
|
grmiregistry.1 \
|
|
gserialver.1 \
|
|
gtnameserv.1
|
|
|
|
BASEVER = $(top_srcdir)/../../gcc/BASE-VER
|
|
DEVPHASE = $(top_srcdir)/../../gcc/DEV-PHASE
|
|
|
|
POD2MAN = pod2man --center="GNU" --release="gcc-$(shell cat $(BASEVER))"
|
|
TEXI2POD = perl $(top_srcdir)/../../contrib/texi2pod.pl
|
|
STAMP = echo timestamp >
|
|
|
|
# gcc-vers.texi is generated from the version files.
|
|
gcc-vers.texi: $(BASEVER) $(DEVPHASE)
|
|
(echo "@set version-GCC $(shell cat $(BASEVER))"; \
|
|
if [ "$(shell cat $(DEVPHASE))" = "experimental" ]; \
|
|
then echo "@set DEVELOPMENT"; \
|
|
else echo "@clear DEVELOPMENT"; \
|
|
fi) > $@T
|
|
mv -f $@T $@
|
|
|
|
%.1: %.pod
|
|
$(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
|
|
|
|
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 < $< > $@
|
|
|
|
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 < $< > $@
|
|
|
|
# GCJ LOCAL CHANGE
|
|
# The following commands allow us to release tarballs with the man pages
|
|
# and info documentation prebuilt. This feature is enabled via
|
|
# --enable-generated-files-in-srcdir in the configure script.
|
|
|
|
if GENINSRC
|
|
STAMP_GENINSRC = stamp-geninsrc
|
|
else
|
|
STAMP_GENINSRC =
|
|
endif
|
|
|
|
all-local: $(STAMP_GENINSRC)
|
|
|
|
stamp-geninsrc: $(TOOLS_MANFILES) cp-tools.info
|
|
-cp -p gappletviewer.1 $(srcdir)/gappletviewer.1
|
|
-cp -p gjar.1 $(srcdir)/gjar.1
|
|
-cp -p gjarsigner.1 $(srcdir)/gjarsigner.1
|
|
-cp -p gjavah.1 $(srcdir)/gjavah.1
|
|
-cp -p gkeytool.1 $(srcdir)/gkeytool.1
|
|
-cp -p gnative2ascii.1 $(srcdir)/gnative2ascii.1
|
|
-cp -p gorbd.1 $(srcdir)/gorbd.1
|
|
-cp -p grmid.1 $(srcdir)/grmid.1
|
|
-cp -p grmiregistry.1 $(srcdir)/grmiregistry.1
|
|
-cp -p gserialver.1 $(srcdir)/gserialver.1
|
|
-cp -p gtnameserv.1 $(srcdir)/gtnameserv.1
|
|
-cp -p cp-tools.info $(srcdir)/cp-tools.info
|
|
touch $@
|
|
|
|
CLEANFILES = stamp-geninsrc cp-tools.info
|
|
MAINTAINERCLEANFILES = \
|
|
$(srcdir)/gappletviewer.1 \
|
|
$(srcdir)/gjar.1 \
|
|
$(srcdir)/gjarsigner.1 \
|
|
$(srcdir)/gjavah.1 \
|
|
$(srcdir)/gkeytool.1 \
|
|
$(srcdir)/gnative2ascii.1 \
|
|
$(srcdir)/gorbd.1 \
|
|
$(srcdir)/grmid.1 \
|
|
$(srcdir)/grmiregistry.1 \
|
|
$(srcdir)/gserialver.1 \
|
|
$(srcdir)/gtnameserv.1 \
|
|
$(srcdir)/cp-tools.info
|