aboutsummaryrefslogtreecommitdiff
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-02-07 20:19:58 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-02-07 20:19:58 +0000
commitf0d87cdad8ae2f4b34e4dfe313bc91e716636ba7 (patch)
tree2d4549689a45b5995bffa702a7340b860cb99df4 /libjava/Makefile.am
parentb950a32e341adc4457bc428e9b261764ed8456ef (diff)
downloadgcc-f0d87cdad8ae2f4b34e4dfe313bc91e716636ba7.zip
gcc-f0d87cdad8ae2f4b34e4dfe313bc91e716636ba7.tar.gz
gcc-f0d87cdad8ae2f4b34e4dfe313bc91e716636ba7.tar.bz2
re PR libgcj/19611 (create 'sources.zip' for use in eclipse)
PR libgcj/19611: * Makefile.in: Rebuilt. * Makefile.am (src.zip): New target. (install-src.zip): Likewise. (sourcesdir): New variable. From-SVN: r94710
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am43
1 files changed, 43 insertions, 0 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 44c2947..ba40f65 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -3734,6 +3734,49 @@ texinfo: TexinfoDoclet.class
## ################################################################
##
+## Creating and installing sources.zip
+##
+
+## Create a zip holding all the sources. This can be meaningfully
+## used in Eclipse.
+src.zip:
+ -rm -f src.zip
+ here=`pwd`; \
+ ( ( cd $(srcdir); \
+ find java gnu javax org -name '*.java' -print | \
+ while read file; do \
+## Ugly code to avoid "echo -C". Must separate each entry by a newline
+## Gross but easy.
+ echo "x-C" | sed -e 's/^.//'; \
+ echo $(srcdir); \
+ echo $$file; \
+ done ); \
+## Now the build tree.
+ find gnu java -name '*.java' -print) | \
+## Many of the above circumlocutions are because ZIP will most likely
+## be a relative path to fastjar.
+ $(ZIP) -cfM@ $$here/src.zip
+## Now include the files from external/.
+ for dir in sax w3c_dom; do \
+ (cd $(srcdir)/external/$$dir; \
+ find org -type f -name '*.java' -print | while read file; do \
+ echo "x-C" | sed -e 's/^.//'; \
+ echo $(srcdir)/external/$$dir; \
+ echo $$file; \
+ done) | \
+ $(ZIP) -ufM0E@ src.zip; \
+ done
+
+## We use a variable for this in case the user wants to override it.
+sourcesdir = $(jardir)
+
+install-src.zip: src.zip
+ $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-@gcc_version@.zip
+
+
+## ################################################################
+
+##
## Dependency tracking madness.
##