From c988e7144e373a6ccd9e2ae04d449b99394147a7 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 27 Aug 2018 23:55:04 +0200 Subject: 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. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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) $@ -- cgit v1.2.3