aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-10-14 16:11:19 +0200
committerTeddy Wing2018-10-14 16:12:08 +0200
commit8b0eea58989b3f4f103cfae7438d16724c0354e8 (patch)
tree525b46f05ec520b1ab2323a7de4e9293433ce6de /Makefile
parent3e6072edab1be7066bcbb38542d6925d6e10f793 (diff)
downloaddome_key_event_source_simulator-8b0eea58989b3f4f103cfae7438d16724c0354e8.tar.bz2
Makefile: Rebuild when Objective-C sources change
Makes the edit-compile cycle faster.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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)