This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: Makefile.am
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 9 Dec 2003 18:32:46 +0100
- Subject: Patch: Makefile.am
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
Makefile.am has a problem with installing generated inner nat headers.
The attached patch fixes this by explicitely installing these
headers. This was necessary because if the $ int the file names and
mangling of this in make and install.
Please review and comment.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/1gc+WSOgCCdjSDsRAv48AJ9qdp/5xNHDSS4w8osTTZXLXi+92gCfWXH9
6pgxiJPBjsowbx9Y5yz19Hc=
=W60m
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2434
diff -u -b -B -r1.2434 ChangeLog
--- ChangeLog 9 Dec 2003 16:17:00 -0000 1.2434
+++ ChangeLog 9 Dec 2003 16:23:19 -0000
@@ -1,5 +1,13 @@
2003-12-09 Michael Koch <konqueror@gmx.de>
+ * Makefile.am (nat_headers_install): New variable with header files to
+ install automatically.
+ (install-data-local): Install all headers listed in
+ nat_headers_install. Install innert nat headers explicitely.
+ * Makefile.in: Regenerated.
+
+2003-12-09 Michael Koch <konqueror@gmx.de>
+
* java/util/Calendar.java,
java/util/IdentityHashMap.java,
java/util/prefs/Preferences.java:
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.336
diff -u -b -B -r1.336 Makefile.am
--- Makefile.am 25 Nov 2003 01:57:27 -0000 1.336
+++ Makefile.am 9 Dec 2003 16:23:19 -0000
@@ -477,6 +477,7 @@
gnu/java/net/PlainSocketImpl$$SocketOutputStream.h
nat_headers = $(ordinary_nat_headers) $(inner_nat_headers)
+nat_headers_install = $(ordinary_nat_headers)
x_nat_headers = $(x_java_source_files:.java=.h)
@@ -580,7 +581,7 @@
## We use a GNU make trick here so that we don't go over the command
## length limit of some shells.
@echo Creating list of headers to install...
- @: $(call write_entries_to_file,$(nat_headers) $(extra_headers),tmp-ilist)
+ @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
@cat tmp-ilist | while read f; do \
d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
$(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
@@ -596,6 +597,14 @@
echo " $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f"; \
$(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f; \
done
+# Install inner class headers.
+ $(INSTALL_DATA) 'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(includedir)/java/io/
+ $(INSTALL_DATA) 'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(includedir)/java/io/
+ $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(includedir)/java/lang/reflect/
+ $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(includedir)/java/lang/reflect/
+ $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(includedir)/gnu/java/net/
+ $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(includedir)/gnu/java/net/
+
$(INSTALL_DATA) $(srcdir)/java/util/logging/logging.properties $(DESTDIR)$(propdir)/logging.properties
## ################################################################
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.in,v
retrieving revision 1.360
diff -u -b -B -r1.360 Makefile.in
--- Makefile.in 25 Nov 2003 01:57:28 -0000 1.360
+++ Makefile.in 9 Dec 2003 16:23:22 -0000
@@ -455,6 +455,7 @@
nat_headers = $(ordinary_nat_headers) $(inner_nat_headers)
+nat_headers_install = $(ordinary_nat_headers)
x_nat_headers = $(x_java_source_files:.java=.h)
@@ -2755,7 +2756,7 @@
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-TAR = gtar
+TAR = tar
GZIP_ENV = --best
DIST_SUBDIRS = @DIRLTDL@ testsuite gcj include @DIRLTDL@ gcj include
DEP_FILES = .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
@@ -5123,7 +5124,7 @@
install-data-local:
$(PRE_INSTALL)
@echo Creating list of headers to install...
- @: $(call write_entries_to_file,$(nat_headers) $(extra_headers),tmp-ilist)
+ @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
@cat tmp-ilist | while read f; do \
d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
$(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
@@ -5137,6 +5138,14 @@
echo " $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f"; \
$(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f; \
done
+# Install inner class headers.
+ $(INSTALL_DATA) 'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(includedir)/java/io/
+ $(INSTALL_DATA) 'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(includedir)/java/io/
+ $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(includedir)/java/lang/reflect/
+ $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(includedir)/java/lang/reflect/
+ $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(includedir)/gnu/java/net/
+ $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(includedir)/gnu/java/net/
+
$(INSTALL_DATA) $(srcdir)/java/util/logging/logging.properties $(DESTDIR)$(propdir)/logging.properties
maintainer-check: libgcj.la