aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/packaging/xbmc-osx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/darwin/packaging/xbmc-osx/Makefile')
-rw-r--r--tools/darwin/packaging/xbmc-osx/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/darwin/packaging/xbmc-osx/Makefile b/tools/darwin/packaging/xbmc-osx/Makefile
new file mode 100644
index 0000000000..4b0990b184
--- /dev/null
+++ b/tools/darwin/packaging/xbmc-osx/Makefile
@@ -0,0 +1,18 @@
+TARGET = ../../../../XBMC_for_Mac.dmg
+
+all: $(TARGET)
+
+include ../../../../Makefile.include
+
+$(TARGET): dist/XBMC.dmg
+ mv -f dist/XBMC.dmg $(TARGET)
+
+ifeq ($(findstring D_DEBUG,$(CFLAGS)), D_DEBUG)
+dist/XBMC.dmg:
+ if [ -e "/Volumes/XBMC" ] ; then umount /Volumes/XBMC ; fi
+ ./dmgmaker.pl ../../../../build/Debug/XBMC.app
+else
+dist/XBMC.dmg:
+ if [ -e "/Volumes/XBMC" ] ; then umount /Volumes/XBMC ; fi
+ ./dmgmaker.pl ../../../../build/Release/XBMC.app
+endif