diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 383f791..da443a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,3 +10,14 @@ AM_CFLAGS = ${my_CFLAGS} bindfs_LDADD = ${fuse_LIBS} ${fuse3_LIBS} ${fuse_t_LIBS} ${my_LDFLAGS} man_MANS = bindfs.1 + +if BUILD_OS_IS_DARWIN +bindfs_BUNDLEDIR = /Library/Filesystems/bindfs.fs +bindfs_BUNDLEBINDIR = "${bindfs_BUNDLEDIR}/Contents/Resources" + +install-exec-hook: + (mkdir -p "${bindfs_BUNDLEBINDIR}"; ln -s "${bindir}/bindfs" "${bindfs_BUNDLEBINDIR}/mount_bindfs") + +uninstall-hook: + (rm -rf ${bindfs_BUNDLEDIR}) +endif |