Permalink
Browse files

fix JNI header dependency

  • Loading branch information...
1 parent 84ce2dd commit 1142049d1bc1f4301e90fe712ae158857db34aff @xerial committed Mar 21, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 Makefile
View
6 Makefile
@@ -19,12 +19,12 @@ CFLAGS:=$(CFLAGS) -I$(LARRAY_SRC_DIR)
LARRAY_HEADER:=$(SRC)/xerial/larray/impl/LArrayNative.h
-$(TARGET)/classes/xerial/larray/impl/LArrayNative.class : $(LARRAY_SRC_DIR)/LArrayNative.java
- $(JAVAC) -d $(TARGET)/classes $<
+$(TARGET)/classes/xerial/larray/impl/%.class : $(LARRAY_SRC_DIR)/%.java
+ $(JAVAC) -sourcepath $(SRC) -d $(TARGET)/classes $<
jni-header: $(LARRAY_HEADER)
-$(LARRAY_HEADER): $(SRC)/xerial/larray/impl/LArrayNative.java $(TARGET)/classes/xerial/larray/impl/LArrayNative.class
+$(LARRAY_HEADER): $(SRC)/xerial/larray/impl/LArrayNative.java $(TARGET)/classes/xerial/larray/impl/LArrayNative.class
@mkdir -p $(TARGET)/classes
$(JAVAH) -classpath $(TARGET)/classes -o $@ xerial.larray.impl.LArrayNative

0 comments on commit 1142049

Please sign in to comment.