From 5d9d99d26f933ae6a0e8d0b939bb8822a19e7507 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 16 Mar 2018 14:55:32 +0100 Subject: Add phony target to java makefile so it properly rebuilds the native lib. Always recurse for the native library, so that it will be rebuilt if the sources change. --- platform/java/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/java/Makefile b/platform/java/Makefile index 661e9996..9863ab6e 100644 --- a/platform/java/Makefile +++ b/platform/java/Makefile @@ -27,10 +27,10 @@ default: $(MUPDF_JAVA) libmupdf.jar MUPDF_CORE := ../../build/java/libmupdf.a ../../build/java/libmupdfthird.a ifeq "$(OS)" "Linux" -$(MUPDF_CORE) : +$(MUPDF_CORE) : .FORCE $(MAKE) -C ../.. OUT=build/java XCFLAGS=-fPIC FREETYPE_DIR=/foo ZLIB_DIR=/foo libs else -$(MUPDF_CORE) : +$(MUPDF_CORE) : .FORCE $(MAKE) -C ../.. OUT=build/java XCFLAGS=-fPIC libs endif @@ -80,3 +80,4 @@ nuke: clean $(MAKE) -C ../.. OUT=build/java clean .NOTPARALLEL : # disable -j option (it breaks since javac compiles all class files in one command) +.PHONY: .FORCE -- cgit v1.2.3