Fix Makefile dependencies when generating SnappyNative.h

This commit is contained in:
Taro L. Saito 2013-04-10 10:33:28 +09:00
parent 8ff03ba782
commit 34ba11cc9a
2 changed files with 4 additions and 2 deletions

View File

@ -26,9 +26,11 @@ $(SNAPPY_UNPACKED): $(SNAPPY_ARCHIVE)
jni-header: $(SRC)/org/xerial/snappy/SnappyNative.h
$(SRC)/org/xerial/snappy/SnappyNative.h: $(SRC)/org/xerial/snappy/SnappyNative.java
$(TARGET)/classes/org/xerial/snappy/SnappyNative.class : $(SRC)/org/xerial/snappy/SnappyNative.java
@mkdir -p $(TARGET)/classes
$(JAVAC) -source 1.6 -target 1.6 -d $(TARGET)/classes -sourcepath $(SRC) $<
$(SRC)/org/xerial/snappy/SnappyNative.h: $(TARGET)/classes/org/xerial/snappy/SnappyNative.class
$(JAVAH) -classpath $(TARGET)/classes -o $@ org.xerial.snappy.SnappyNative
bytecode: src/main/resources/org/xerial/snappy/SnappyNativeLoader.bytecode