Build ocamlmsg if it isn't already built
This commit is contained in:
parent
83da5ad0f1
commit
3dcdf4308f
7
Makefile
7
Makefile
|
@ -5,15 +5,18 @@ SERVER_WEB=web
|
|||
RELEASE_RESOURCES=build/Release/Ocamlmsg.app/Contents/Resources
|
||||
DEBUG_RESOURCES=build/Debug/Ocamlmsg.app/Contents/Resources
|
||||
|
||||
release:
|
||||
release: $(SERVER_PATH)/$(SERVER_BINARY)
|
||||
xcodebuild -configuration Release
|
||||
cp $(SERVER_PATH)/$(SERVER_BINARY) $(RELEASE_RESOURCES)/.
|
||||
cp -rp $(SERVER_PATH)/$(SERVER_WEB) $(RELEASE_RESOURCES)/.
|
||||
|
||||
debug:
|
||||
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)/
|
||||
|
||||
$(SERVER_PATH)/$(SERVER_BINARY):
|
||||
make -C $(SERVER_PATH)
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
|
Loading…
Reference in New Issue