aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-08-27 23:55:04 +0200
committerTeddy Wing2018-08-27 23:55:04 +0200
commitc988e7144e373a6ccd9e2ae04d449b99394147a7 (patch)
tree8ceb94b0f49bb549a07d844eb1e3bb52c2affacc /Makefile
parent2d5d0fd66f8d921a50055260529dbb38abfdb0d1 (diff)
downloadDomeKey-c988e7144e373a6ccd9e2ae04d449b99394147a7.tar.bz2
Makefile: Add target for Rust library
Make a sub-make target for the Rust library. We'll want to make this a dependency of the regular DomeKey `build` target.
Diffstat (limited to 'Makefile')
-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) $@