Hi folks!

I've been looking around all evening trying to figure out the following:

I have a java class specifying a JNI native method. Through the javah tool, I can produce header files defining the required c function calls.

So I am generating .h files from .java files. However, the .java filenames do not match the generated .h files, and the common

%.h : %.java

does not work. I am wondering how these pattern searches can be modified with substr or something similar. How can I alter the content of "%.java" using content of "%.h"?


I appreciate all feedback,
thank you.

Kris