From 8b0eea58989b3f4f103cfae7438d16724c0354e8 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 14 Oct 2018 16:11:19 +0200 Subject: Makefile: Rebuild when Objective-C sources change Makes the edit-compile cycle faster. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78139db..25cf9b1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ +SOURCES := dome_key_event_source_simulator/* LIB_DEBUG := ~/Library/Developer/Xcode/DerivedData/dome_key_event_source_simulator-*/Build/Products/Debug/libdome_key_event_source_simulator.a .PHONY: build -build: +build: $(LIB_DEBUG) + +$(LIB_DEBUG): $(SOURCES) xcodebuild -scheme dome_key_event_source_simulator -configuration Debug test: test.c $(LIB_DEBUG) -- cgit v1.2.3