diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-07 20:19:58 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-07 20:19:58 +0000 |
| commit | e6aff7b9b00f02a5ccb654767f44cabedbdf8944 (patch) | |
| tree | 2d4549689a45b5995bffa702a7340b860cb99df4 /libjava/Makefile.am | |
| parent | 402946c115f95d546ebe17fdf1fcc385ddcd1762 (diff) | |
| download | ppe42-gcc-e6aff7b9b00f02a5ccb654767f44cabedbdf8944.tar.gz ppe42-gcc-e6aff7b9b00f02a5ccb654767f44cabedbdf8944.zip | |
PR libgcj/19611:
* Makefile.in: Rebuilt.
* Makefile.am (src.zip): New target.
(install-src.zip): Likewise.
(sourcesdir): New variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/Makefile.am')
| -rw-r--r-- | libjava/Makefile.am | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am index 44c29474c56..ba40f654675 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. ## |

