aboutsummaryrefslogtreecommitdiff
path: root/fastjar/Makefile.am
diff options
context:
space:
mode:
authorKelley Cook <kcook@gcc.gnu.org>2004-04-14 23:49:37 +0000
committerR. Kelley Cook <kcook@gcc.gnu.org>2004-04-14 23:49:37 +0000
commit3c15396c4b45983e162fecfc52a64723aae2f6da (patch)
treea7a9e7167df0a45b63f91fc92d30b570dbe2467f /fastjar/Makefile.am
parent881d49ac61054464bbc68eed022a4d90099de6c4 (diff)
downloadgcc-3c15396c4b45983e162fecfc52a64723aae2f6da.zip
gcc-3c15396c4b45983e162fecfc52a64723aae2f6da.tar.gz
gcc-3c15396c4b45983e162fecfc52a64723aae2f6da.tar.bz2
re PR bootstrap/14905 ('make install' fails on grepjar.1, not included in tarball)
2004-04-14 Kelley Cook <kcook@gcc.gnu.org> PR bootstrap/14905 * configure.ac: Parse --enable-generated-files-in-srcdir. * Makefile.am: Copy man and info files to srcdir if requested. * configure: Regenerate. * Makefile.in Regenerate. From-SVN: r80698
Diffstat (limited to 'fastjar/Makefile.am')
-rw-r--r--fastjar/Makefile.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/fastjar/Makefile.am b/fastjar/Makefile.am
index 3d4ea36..6c442e2 100644
--- a/fastjar/Makefile.am
+++ b/fastjar/Makefile.am
@@ -82,3 +82,27 @@ jar.pod: $(srcdir)/fastjar.texi
grepjar.pod: $(srcdir)/fastjar.texi
-$(TEXI2POD) -D grepjar $< > $@
+
+# GCC 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: jar.1 grepjar.1 fastjar.info
+ -cp -p $(top_builddir)/jar.1 $(srcdir)/jar.1
+ -cp -p $(top_builddir)/grepjar.1 $(srcdir)/grepjar.1
+ -cp -p $(top_builddir)/fastjar.info $(srcdir)/fastjar.info
+ touch $@
+
+CLEANFILES = stamp-geninsrc
+MAINTAINERCLEANFILES = $(srcdir)/jar.1 \
+ $(srcdir)/grepjar.1 \
+ $(srcdir)/fastjar.info