Makefile.am 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. SUBDIRS = api
  2. EXTRA_DIST = README.jaxp texi2pod.pl $(man_MANS)
  3. ## GCJ LOCAL: we don't want to install all of Classpath's info files.
  4. ## info_TEXINFOS = cp-hacking.texinfo cp-vmintegration.texinfo cp-tools.texinfo
  5. TEXINFO_TEX = ../../gcc/doc/include/texinfo.tex
  6. info_TEXINFOS = cp-tools.texinfo
  7. # POSIX locale necessary to make grep work; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586134
  8. .texinfo.dvi:
  9. LC_ALL=POSIX texi2dvi --build-dir=$(builddir) -o $@ $<
  10. .dvi.ps:
  11. dvips -o $@ $<
  12. docs: cp-hacking.ps cp-vmintegration.ps cp-tools.ps $(TOOLS_MANFILES)
  13. man_MANS = $(TOOLS_MANFILES)
  14. TOOLS_MANFILES = \
  15. gappletviewer.1 \
  16. gjar.1 \
  17. gjarsigner.1 \
  18. gjavah.1 \
  19. gcjh.1 \
  20. gkeytool.1 \
  21. gnative2ascii.1 \
  22. gorbd.1 \
  23. grmid.1 \
  24. grmiregistry.1 \
  25. gserialver.1 \
  26. gtnameserv.1 \
  27. gjdoc.1
  28. POD2MAN = pod2man --center="GNU" --release="$(VERSION)" --date=$(shell sed -n '1s/ .*//p' <$(srcdir)/../ChangeLog)
  29. TEXI2POD = perl $(srcdir)/texi2pod.pl
  30. STAMP = echo timestamp >
  31. .pod.1:
  32. $(STAMP) $@
  33. -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
  34. mv -f $(@).T$$$$ $@) || \
  35. (rm -f $(@).T$$$$ && exit 1)
  36. .INTERMEDIATE: gappletviewer.pod gjarsigner.pod gjar.pod gjavah.pod \
  37. gkeytool.pod gnative2ascii.pod gorbd.pod grmid.pod grmiregistry.pod \
  38. gserialver.pod gtnameserv.pod gcjh.pod gjdoc.pod
  39. gappletviewer.pod: $(srcdir)/cp-tools.texinfo
  40. -$(TEXI2POD) -D gappletviewer < $< > $@
  41. gjarsigner.pod: $(srcdir)/cp-tools.texinfo
  42. -$(TEXI2POD) -D gjarsigner < $< > $@
  43. gjar.pod: $(srcdir)/cp-tools.texinfo
  44. -$(TEXI2POD) -D gjar < $< > $@
  45. gcjh.pod: $(srcdir)/cp-tools.texinfo
  46. -$(TEXI2POD) -D gcjh < $< > $@
  47. gjavah.pod: $(srcdir)/cp-tools.texinfo
  48. -$(TEXI2POD) -D gjavah < $< > $@
  49. # hack around the cross references and the enumeration
  50. gkeytool.pod: $(srcdir)/cp-tools.texinfo
  51. -$(TEXI2POD) -D gkeytool < $< \
  52. | sed -e 's/^For more details.*/See I<Common Options> for more details./' \
  53. -e 's/1\.<\([^>]*\)>/- \1/' \
  54. > $@
  55. gnative2ascii.pod: $(srcdir)/cp-tools.texinfo
  56. -$(TEXI2POD) -D gnative2ascii < $< > $@
  57. gorbd.pod: $(srcdir)/cp-tools.texinfo
  58. -$(TEXI2POD) -D gorbd < $< > $@
  59. grmid.pod: $(srcdir)/cp-tools.texinfo
  60. -$(TEXI2POD) -D grmid < $< > $@
  61. grmiregistry.pod: $(srcdir)/cp-tools.texinfo
  62. -$(TEXI2POD) -D grmiregistry < $< > $@
  63. gserialver.pod: $(srcdir)/cp-tools.texinfo
  64. -$(TEXI2POD) -D gserialver < $< > $@
  65. gtnameserv.pod: $(srcdir)/cp-tools.texinfo
  66. -$(TEXI2POD) -D gtnameserv < $< > $@
  67. gjdoc.pod: $(srcdir)/cp-tools.texinfo
  68. -$(TEXI2POD) -D gjdoc < $< > $@
  69. # GCJ LOCAL CHANGE
  70. #CLEANFILES = $(TOOLS_MANFILES)
  71. # GCJ LOCAL CHANGE
  72. # The following commands allow us to release tarballs with the man pages
  73. # and info documentation prebuilt. This feature is enabled via
  74. # --enable-generated-files-in-srcdir in the configure script.
  75. if GENINSRC
  76. STAMP_GENINSRC = stamp-geninsrc
  77. else
  78. STAMP_GENINSRC =
  79. endif
  80. all-local: $(STAMP_GENINSRC)
  81. stamp-geninsrc: $(TOOLS_MANFILES) cp-tools.info
  82. -cp -p gappletviewer.1 $(srcdir)/gappletviewer.1
  83. -cp -p gjar.1 $(srcdir)/gjar.1
  84. -cp -p gjarsigner.1 $(srcdir)/gjarsigner.1
  85. -cp -p gjavah.1 $(srcdir)/gjavah.1
  86. -cp -p gjdoc.1 $(srcdir)/gjdoc.1
  87. -cp -p gkeytool.1 $(srcdir)/gkeytool.1
  88. -cp -p gnative2ascii.1 $(srcdir)/gnative2ascii.1
  89. -cp -p gorbd.1 $(srcdir)/gorbd.1
  90. -cp -p grmid.1 $(srcdir)/grmid.1
  91. -cp -p grmiregistry.1 $(srcdir)/grmiregistry.1
  92. -cp -p gserialver.1 $(srcdir)/gserialver.1
  93. -cp -p gtnameserv.1 $(srcdir)/gtnameserv.1
  94. -cp -p cp-tools.info $(srcdir)/cp-tools.info
  95. touch $@
  96. CLEANFILES = stamp-geninsrc cp-tools.info
  97. MAINTAINERCLEANFILES = \
  98. $(srcdir)/gappletviewer.1 \
  99. $(srcdir)/gjar.1 \
  100. $(srcdir)/gjarsigner.1 \
  101. $(srcdir)/gjavah.1 \
  102. $(srcdir)/gjdoc.1 \
  103. $(srcdir)/gkeytool.1 \
  104. $(srcdir)/gnative2ascii.1 \
  105. $(srcdir)/gorbd.1 \
  106. $(srcdir)/grmid.1 \
  107. $(srcdir)/grmiregistry.1 \
  108. $(srcdir)/gserialver.1 \
  109. $(srcdir)/gtnameserv.1 \
  110. $(srcdir)/cp-tools.info
  111. clean-local:
  112. -rm -rf *.t2d