]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - Makefile
initial OS X app building stuff. May be broken.
[xonotic/netradiant.git] / Makefile
index 334aa1090df52c061a4e84255726272fa2c79226..0319a92c9cb1b05621fb7c0f48688fa0afff754c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -191,7 +191,10 @@ ifeq ($(OS),Darwin)
        # workaround: we have no "ldd" for OS X, so...
        LDD =
 
-#$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch)
+       INSTALLDIR_BASE := $(INSTALLDIR)
+       INSTALLDIR := $(INSTALLDIR_BASE)/NetRadiant.app/Contents/MacOS/install
+endif
+
 else
 
 $(error Unsupported build OS: $(OS))
@@ -935,6 +938,7 @@ $(INSTALLDIR)/heretic2/h2data.$(EXE): \
 install-data: binaries
        $(MKDIR) $(INSTALLDIR)/games
        $(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune
+       [ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
        set -ex; \
        for GAME in games/*; do \
                if [ -d "$$GAME/tools" ]; then \