summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-01-24 14:59:25 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-01-24 16:24:57 +0100
commite544c6fa9e15e7277da79e2464243e90b2706b8c (patch)
treede6613747e0e34a799089d4677f9833a85748712 /Makefile
parentaab2e4b966c82b67eb0e204060e5ea6cd4ea15cf (diff)
Cleanup
Added variables to Makefiles to specify custom exports/ directory; Split exception classes in Java & C#; Added more comments; Renamed library and Go package; Removed real (pure) tests; Added generate_lib.ps1 to generate import .lib for Windows (Swift); Moved built Go libraries to exports/lib/; Switch to hopefully faster Swift GitHub Action.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6eb3c26..13b95f5 100644
--- a/Makefile
+++ b/Makefile
@@ -14,17 +14,18 @@ wrappers = $(wildcard wrappers/*/)
test-wrappers: build
$(MAKE) $(foreach wrapper,$(wrappers),.test_$(wrapper))
+# Enable parallelism if -j is specified
clean:
$(MAKE) .clean_libs $(foreach wrapper,$(wrappers),.clean_$(wrapper))
.clean_libs:
$(MAKE) -C exports clean
+# Define test & clean for each wrapper
define wrapper_targets
.test_$(1):
- $(MAKE) -C $(1) test
+ $(MAKE) -C "$(1)" test
.clean_$(1):
- $(MAKE) -C $(1) clean
+ $(MAKE) -C "$(1)" clean
endef
-
$(foreach wrapper,$(wrappers),$(eval $(call wrapper_targets,$(wrapper))))