summaryrefslogtreecommitdiff
path: root/Makefile
blob: 744e9b17001d3a829cc626aa8d12e8b8700229ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
JAVAC = javac

HEADER_DIR = src/header
JAVA_SRC_DIR = src/java

JAVA_SRC_FILE = $(JAVA_SRC_DIR)/FileCowCopier.java
JNI_HEADER = $(HEADER_DIR)/com_keuin_kbackupfabric_util_cow_FileCowCopier.h

all: $(JNI_HEADER)

$(JNI_HEADER): $(JAVA_SRC_FILE)
	$(JAVAC) -h $(HEADER_DIR) $(JAVA_SRC_FILE)

clean:
	rm -rf $(HEADER_DIR)

.PHONY: all clean