Skip to content

Instantly share code, notes, and snippets.

@morpheby
Last active January 1, 2016 14:08
Show Gist options
  • Save morpheby/8155349 to your computer and use it in GitHub Desktop.
Save morpheby/8155349 to your computer and use it in GitHub Desktop.
Index: tools/macosx/Makefile.am
===================================================================
--- a/tools/macosx/Makefile.am (revision 220)
+++ b/tools/macosx/Makefile.am (working copy)
@@ -10,17 +10,18 @@
)
install-exec-local:
- $(INSTALL) -d $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs
- $(INSTALL) -d $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Support
- $(INSTALL) -d $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Contents
- $(INSTALL) -d $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Contents/Resources
- $(INSTALL) -d $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Contents/Resources/English.lproj
- $(INSTALL) -m 755 $(top_srcdir)/tools/macosx/fuse-ext2.fs/fuse-ext2.util $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util
- $(INSTALL) -m 755 $(top_srcdir)/tools/macosx/fuse-ext2.fs/mount_fuse-ext2 $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/mount_fuse-ext2
+ $(INSTALL) -d $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs
+ $(INSTALL) -d $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Support
+ $(INSTALL) -d $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Contents
+ $(INSTALL) -d $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Contents/Resources
+ $(INSTALL) -d $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Contents/Resources/English.lproj
+ $(INSTALL) -m 755 $(top_srcdir)/tools/macosx/fuse-ext2.fs/fuse-ext2.util $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util
+ $(INSTALL) -m 755 $(top_srcdir)/tools/macosx/fuse-ext2.fs/mount_fuse-ext2 $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/mount_fuse-ext2
sed "s/FUSEEXT2_VERSION_LITERAL/$(VERSION)/g" < $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/Info.plist.in > $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/Info.plist
- $(INSTALL) -m 644 $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/Info.plist $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Contents/Info.plist
- $(INSTALL) -m 644 $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/PkgInfo $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Contents/PkgInfo
- $(INSTALL) -m 644 $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/Resources/English.lproj/InfoPlist.strings $(DESTDIR)/System/Library/Filesystems/fuse-ext2.fs/Contents/Resources/English.lproj/InfoPlist.strings
- cp -R $(top_srcdir)/tools/macosx/prefpane/build/Release/fuse-ext2.prefPane ${DESTDIR}/Library/PreferencePanes/fuse-ext2.prefPane
+ $(INSTALL) -m 644 $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/Info.plist $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Contents/Info.plist
+ $(INSTALL) -m 644 $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/PkgInfo $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Contents/PkgInfo
+ $(INSTALL) -m 644 $(top_srcdir)/tools/macosx/fuse-ext2.fs/Contents/Resources/English.lproj/InfoPlist.strings $(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/Contents/Resources/English.lproj/InfoPlist.strings
+ $(MKDIR_P) ${DESTDIR}/$(prefix)/Library/PreferencePanes
+ cp -R $(top_srcdir)/tools/macosx/prefpane/build/Release/fuse-ext2.prefPane ${DESTDIR}/$(prefix)/Library/PreferencePanes/fuse-ext2.prefPane
endif
Index: fuse-ext2/Makefile.am
===================================================================
--- a/fuse-ext2/Makefile.am (revision 220)
+++ b/fuse-ext2/Makefile.am (working copy)
@@ -192,6 +192,6 @@
if DARWIN
install-exec-local:
- $(INSTALL) -d "$(DESTDIR)/sbin"
- $(LN_S) -f "../System/Library/Filesystems/fuse-ext2.fs/mount_fuse-ext2" "$(DESTDIR)/sbin/mount_fuse-ext2"
+ $(INSTALL) -d "$(DESTDIR)/$(prefix)/sbin"
+ $(LN_S) -f "$(DESTDIR)/$(prefix)/System/Library/Filesystems/fuse-ext2.fs/mount_fuse-ext2" "$(DESTDIR)/$(prefix)/sbin/mount_fuse-ext2"
endif
if LINUX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment