Copy over server into finished product.
This commit is contained in:
parent
73ef7f9d7d
commit
a18fecb27b
18
Makefile
18
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
|
||||
|
|
Loading…
Reference in New Issue