aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb5a187..2fc2a3d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,13 @@ SOURCE_FILES = $(shell find DomeKey lib \
-or -name '*.m' \
-or -name '*.c')
+RUST_DIR := lib/dome-key-map
+RUST_LIB := target/debug/libdome_key_map.a
+
.PHONY: build
build: $(SOURCE_FILES)
xcodebuild -scheme DomeKey -configuration Debug
+
+$(RUST_LIB):
+ $(MAKE) -C $(RUST_DIR) $@