diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-16 14:55:32 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-22 14:58:01 +0100 |
commit | 5d9d99d26f933ae6a0e8d0b939bb8822a19e7507 (patch) | |
tree | 7c261c4a252df81a0e3f1050afc4d101ec82729f /platform/java/Makefile | |
parent | 21e0da7e2715df87c93433ba9f99be308e6ec814 (diff) | |
download | mupdf-5d9d99d26f933ae6a0e8d0b939bb8822a19e7507.tar.xz |
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.
Diffstat (limited to 'platform/java/Makefile')
-rw-r--r-- | platform/java/Makefile | 5 |
1 files 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 |