From f463d4c1a550c4b3dfc0be362f0b0a723a88122d Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Mon, 29 Nov 2021 00:12:42 +0100 Subject: Improve Java wrapper: add all tests, link correct libraries, use Maven, add Makefile & GitHub workflow. Fix make clean targets. --- Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ba9756d..a19af3e 100644 --- a/Makefile +++ b/Makefile @@ -8,16 +8,24 @@ test: test-go test-wrappers test-go: go test +wrappers = $(wildcard wrappers/*/) + # Enable parallelism if -j is specified test-wrappers: build - $(MAKE) .test-csharp .test-python - -.test-csharp: - $(MAKE) -C wrappers/csharp test - -.test-python: - $(MAKE) -C wrappers/python test + $(MAKE) $(foreach wrapper,$(wrappers),.test_$(wrapper)) clean: $(MAKE) -C exports clean - $(MAKE) -C wrappers/csharp clean + $(MAKE) .clean_libs $(foreach wrapper,$(wrappers),.clean_$(wrapper) ) + +.clean_libs: + $(MAKE) -C exports clean + +define wrapper_targets +.test_$(1): + $(MAKE) -C $(1) test +.clean_$(1): + $(MAKE) -C $(1) clean +endef + +$(foreach wrapper,$(wrappers),$(eval $(call wrapper_targets,$(wrapper)))) -- cgit v1.2.3