From a18fecb27bac7faa8d5cc7be8a21fe59f3e02d3c Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 1 May 2012 15:39:52 -0400 Subject: [PATCH] Copy over server into finished product. --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dac43cd..0b00aed 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,19 @@ -all: - xcodebuild +SERVER_PATH=../ocamlmsg +SERVER_BINARY=ocamlmsg.native +SERVER_WEB=web + +RELEASE_RESOURCES=build/Release/Ocamlmsg.app/Contents/Resources +DEBUG_RESOURCES=build/Debug/Ocamlmsg.app/Contents/Resources + +release: + xcodebuild -configuration Release + cp $(SERVER_PATH)/$(SERVER_BINARY) $(RELEASE_RESOURCES)/. + cp -rp $(SERVER_PATH)/$(SERVER_WEB) $(RELEASE_RESOURCES)/. + +debug: + xcodebuild -configuration Debug + ln -sf $(CURDIR)/$(SERVER_PATH)/$(SERVER_BINARY) $(DEBUG_RESOURCES)/ + ln -sf $(CURDIR)/$(SERVER_PATH)/$(SERVER_WEB) $(DEBUG_RESOURCES)/ clean: rm -rf build