- $(gtk_update_icon_cache)
- $(INSTALL) -d -m 644 $(MANDIR)
- $(INSTALL) $(MANFILES) $(MANDIR)
+ @-if test -z "$(DESTDIR)"; then \
+ $(gtk_update_icon_cache); \
+ fi
+ $(INSTALL) -d -m 755 $(MANDIR)
+ $(INSTALL) -m 644 $(MANFILES) $(MANDIR)
+
+LIBXML2 = $(shell $(XML2CONFIG) --libs)
+XML2CFLAGS = $(shell $(XML2CONFIG) --cflags)
+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/