public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Fix constant re-build in frysk-sys.
@ 2008-04-17 13:43 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-04-17 13:43 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  d474092b293ca62c489a400a0848c09045ef7ca4 (commit)
      from  c0103bc000bfecafba3ead998c171382956032d3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d474092b293ca62c489a400a0848c09045ef7ca4
Author: Andrew Cagney <cagney@redhat.com>
Date:   Thu Apr 17 09:43:07 2008 -0400

    Fix constant re-build in frysk-sys.
    
    frysk-common/ChangeLog
    2008-04-17  Andrew Cagney  <cagney@redhat.com>
    
    	* Makefile.gen.sh (generate_jni_dependency): Only generate
    	dependency when file included.

-----------------------------------------------------------------------

Summary of changes:
 frysk-common/ChangeLog       |    3 +++
 frysk-common/Makefile.gen.sh |    7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-common/ChangeLog b/frysk-common/ChangeLog
index 20e0178..3693bf1 100644
--- a/frysk-common/ChangeLog
+++ b/frysk-common/ChangeLog
@@ -1,5 +1,8 @@
 2008-04-17  Andrew Cagney  <cagney@redhat.com>
 
+	* Makefile.gen.sh (generate_jni_dependency): Only generate
+	dependency when file included.
+	
 	* Makefile.gen.sh (generate_jni_header): Remove stray "s.
 
 2008-04-16  Andrew Cagney  <cagney@redhat.com>
diff --git a/frysk-common/Makefile.gen.sh b/frysk-common/Makefile.gen.sh
index 0206b89..fbfff9e 100755
--- a/frysk-common/Makefile.gen.sh
+++ b/frysk-common/Makefile.gen.sh
@@ -693,9 +693,12 @@ generate_jni_dependency()
     local suffix=$4
     local j=`dirname $d` # drop /jni
     if has_java_source $j/$b ; then
-	# A corresponding .java source file.
+	# The corresponding jni header file.
 	local h=`echo $j/$b | tr '[/]' '[_]'`
-	echo "$d/$b.o: $h.h"
+	# check it is included.
+	if grep "$h.h" $file > /dev/null 2>&1 ; then
+	    echo "$d/$b.o: $h.h"
+	fi
     fi
 }
 


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-17 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-17 13:43 [SCM] master: Fix constant re-build in frysk-sys cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).