hop-2012/Makefile

23 lines
680 B
Makefile
Raw Normal View History

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: $(SERVER_PATH)/$(SERVER_BINARY)
xcodebuild -configuration Release
cp $(SERVER_PATH)/$(SERVER_BINARY) $(RELEASE_RESOURCES)/.
cp -rp $(SERVER_PATH)/$(SERVER_WEB) $(RELEASE_RESOURCES)/.
debug: $(SERVER_PATH)/$(SERVER_BINARY)
xcodebuild -configuration Debug
ln -sf $(CURDIR)/$(SERVER_PATH)/$(SERVER_BINARY) $(DEBUG_RESOURCES)/
ln -sf $(CURDIR)/$(SERVER_PATH)/$(SERVER_WEB) $(DEBUG_RESOURCES)/
2012-05-01 17:53:08 +00:00
$(SERVER_PATH)/$(SERVER_BINARY):
make -C $(SERVER_PATH)
2012-05-01 17:53:08 +00:00
clean:
rm -rf build