summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-31 17:12:59 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-31 17:12:59 -0700
commit5076397df043fb51a776a677fc771fb1a72e6496 (patch)
tree0f928a894e41cb0557e47b87009cf41ca5851ed7 /Makefile
parent06ddeba47ee75e4ac0ca96e75e8b01b1fb9a60c9 (diff)
parentb1a1376f3baf78ceca49b47c7b39d58983f4f984 (diff)
downloadsubsurface-5076397df043fb51a776a677fc771fb1a72e6496.tar.gz
Merge branch 'macosx-app-bundle-1' of git://github.com/henrik242/subsurface
* 'macosx-app-bundle-1' of git://github.com/henrik242/subsurface: Use the new packaging directory for MacOSX specific files, and provide shell script workaround to make the svg icon reachable. Ignore process serial number argument when run as native MacOSX app Add basic MacOSX app bundle install target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3f563a3b5..ab7df0003 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ ICONFILE = $(NAME).svg
DESKTOPFILE = $(NAME).desktop
MANFILES = $(NAME).1
+MACOSXINSTALL = /Applications/Subsurface.app
+MACOSXFILES = packaging/macosx
+
# find libdivecomputer
# First deal with the cross compile environment.
# For the native case, Linus doesn't want to trust pkg-config given
@@ -102,6 +105,16 @@ GLIB2CFLAGS = $(shell $(PKGCONFIG) --cflags glib-2.0)
GCONF2CFLAGS = $(shell $(PKGCONFIG) --cflags gconf-2.0)
GTK2CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-2.0)
+install-macosx: $(NAME)
+ $(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/Resources
+ $(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/MacOS
+ $(INSTALL) $(NAME) $(MACOSXINSTALL)/Contents/MacOS/
+ $(INSTALL) $(MACOSXFILES)/subsurface.sh $(MACOSXINSTALL)/Contents/MacOS/
+ $(INSTALL) $(MACOSXFILES)/PkgInfo $(MACOSXINSTALL)/Contents/
+ $(INSTALL) $(MACOSXFILES)/Info.plist $(MACOSXINSTALL)/Contents/
+ $(INSTALL) $(ICONFILE) $(MACOSXINSTALL)/Contents/Resources/
+ $(INSTALL) $(MACOSXFILES)/Subsurface.icns $(MACOSXINSTALL)/Contents/Resources/
+
parse-xml.o: parse-xml.c dive.h
$(CC) $(CFLAGS) $(GLIB2CFLAGS) -c $(XML2CFLAGS) parse-xml.c