Skip to content

Commit 6743d17

Browse files
committed
Conditionally bootstrap SLF4J API JAR
Create the classpath directory derived from JAVA_CLASSPATH regardless of the location and only download SFL4J API JAR if it is not present.
1 parent 4cd221a commit 6743d17

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Makefile.common

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ JAVA_CLASSPATH?=$(TARGET)/classpath/slf4j-api.jar
1717
## building OSInfo.java
1818
ifeq ("$(wildcard $(OSINFO_PROG))","")
1919
$(info Building OSInfo tool)
20-
$(shell mkdir -p $(TARGET)/classpath)
20+
$(shell mkdir -p $(dir $(JAVA_CLASSPATH)))
21+
ifeq ("$(wildcard $(JAVA_CLASSPATH))","")
2122
$(shell curl -L -f -o$(JAVA_CLASSPATH) https://search.maven.org/remotecontent?filepath=org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar)
23+
endif
2224
$(shell $(JAVAC) -cp $(JAVA_CLASSPATH) -sourcepath $(SRC) -d lib src/main/java/org/sqlite/util/OSInfo.java)
2325
endif
2426

0 commit comments

Comments
 (0)