aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1a1f35c502ccc3b245b046d6207f31a3e741ce57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SOURCE_FILES = $(shell find DomeKey lib \
	-type f \
	-name '*.h' \
	-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) $(RUST_LIB)
	xcodebuild -scheme DomeKey -configuration Debug

$(RUST_LIB):
	$(MAKE) -C $(RUST_DIR) $@

.PHONY: run
run: build
	~/Library/Developer/Xcode/DerivedData/DomeKey-*/Build/Products/Debug/DomeKey