This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Pass down datadir in recursive make


I noticed that "make datadir=... install" didn't work for libjava.
This turns out to be because AM_MAKEFLAGS doesn't pass down datadir;
therefore the default value ($prefix/share) is always used instead of
what the user specified.  (In libjava, $datadir is used as the basis
for $jardir, and controls where libgcj-$version.jar is installed.)

OK to apply?

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

2009-02-10  Mark Mitchell  <mark@codesourcery.com>

	* Makefile.am (AM_MAKEFLAGS): Pass down datadir.

Index: libjava/Makefile.am
===================================================================
--- libjava/Makefile.am	(revision 236120)
+++ libjava/Makefile.am	(working copy)
@@ -1112,6 +1112,7 @@ AM_MAKEFLAGS = \
 	"SHELL=$(SHELL)" \
 	"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
 	"exec_prefix=$(exec_prefix)" \
+	"datadir=$(datadir)" \
 	"infodir=$(infodir)" \
 	"libdir=$(libdir)" \
 	"mandir=$(mandir)" \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]