diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2011-10-16 23:16:36 +0200 |
---|---|---|
committer | Henrik Brautaset Aronsen <hba@conduct.no> | 2011-10-31 09:48:56 +0100 |
commit | 7c5bfff5138382c134e886689633a6fdb9f579a4 (patch) | |
tree | 8db3899d42e8001d21ebc16c61150669a7adcb7f /Makefile | |
parent | 84e6f200f64721771be18564830e277f0885e117 (diff) | |
download | subsurface-7c5bfff5138382c134e886689633a6fdb9f579a4.tar.gz |
Add basic MacOSX app bundle install target
Native MacOSX app bundles are installed in /Applications. We want a separate
install target for this, since some would probably prefer the regular unixy
way.
Signed-Off-By: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -22,6 +22,11 @@ ICONFILE = $(NAME).svg DESKTOPFILE = $(NAME).desktop MANFILES = $(NAME).1 +MACOSXINSTALL = /Applications/Subsurface.app +MACOSXICONFILE = macosx/Subsurface.icns +MACOSXINFOFILE = macosx/Info.plist +MACOSXPKGFILE = macosx/PkgInfo + # find libdivecomputer # First deal with the cross compile environment. # For the native case, Linus doesn't want to trust pkg-config given @@ -100,6 +105,14 @@ 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) $(MACOSXINFOFILE) $(MACOSXINSTALL)/Contents/ + $(INSTALL) $(MACOSXPKGFILE) $(MACOSXINSTALL)/Contents/ + $(INSTALL) $(MACOSXICONFILE) $(MACOSXINSTALL)/Contents/Resources/ + parse-xml.o: parse-xml.c dive.h $(CC) $(CFLAGS) $(GLIB2CFLAGS) -c $(XML2CFLAGS) parse-xml.c |