From b83a6d85b34f7f41027a7a343487d25a7b90d8cc Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Mon, 24 May 2021 19:01:14 +0200
Subject: [PATCH] Don't place stray .class files in src

---
 adaptors/java/src/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/adaptors/java/src/Makefile b/adaptors/java/src/Makefile
index c9e9ea0..4d04bad 100644
--- a/adaptors/java/src/Makefile
+++ b/adaptors/java/src/Makefile
@@ -51,7 +51,8 @@ build/$(JARNAME).jar: JAVAC
 
 build/%.h: $(shell echo $(JNINAME:%=build/%.class) | sed -e 's:_:/:g')
 # Too many dependencies, base the ones we need on $* (matches % above)	
-	cd src ; javac -h ../$(dir $@) $(shell echo $* | sed -e 's|_|/|g').java 
+	cd src ; javac -h ../$(dir $@) -d ../build \
+		       $(shell echo $* | sed -e 's|_|/|g').java 
 
 build/lib%.so: $(JNINAME:%=build/%.h) $(JNINAME:%=src/%.c)
 # Too many dependencies, base the ones we need on $* (matches % above)	
-- 
GitLab