aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelan <relan@users.noreply.github.com>2015-08-12 07:47:54 +0300
committerrelan <relan@users.noreply.github.com>2015-08-26 11:50:43 +0300
commitd6f9ccd0deaedfabda0c377b7fa09290642a6fd8 (patch)
tree2a091109b1df9c67264d6d2a1ded3f9bc1167190
parentc50537e1485c82e58651985c8b43a4bfa3cc3a3d (diff)
downloadandroid_external_exfat-d6f9ccd0deaedfabda0c377b7fa09290642a6fd8.tar.gz
android_external_exfat-d6f9ccd0deaedfabda0c377b7fa09290642a6fd8.tar.bz2
android_external_exfat-d6f9ccd0deaedfabda0c377b7fa09290642a6fd8.zip
Create symlinks on install.
Install fsck.exfat, mount.exfat and mkfs.exfat convenience aliases.
-rw-r--r--fsck/Makefile.am6
-rw-r--r--fuse/Makefile.am6
-rw-r--r--mkfs/Makefile.am6
3 files changed, 18 insertions, 0 deletions
diff --git a/fsck/Makefile.am b/fsck/Makefile.am
index b98a6e0..66a883e 100644
--- a/fsck/Makefile.am
+++ b/fsck/Makefile.am
@@ -24,3 +24,9 @@ sbin_PROGRAMS = exfatfsck
exfatfsck_SOURCES = main.c
exfatfsck_CPPFLAGS = -I$(top_srcdir)/libexfat
exfatfsck_LDADD = ../libexfat/libexfat.a
+
+install-exec-hook:
+ ln -sf $(sbin_PROGRAMS) $(DESTDIR)$(sbindir)/fsck.exfat
+
+uninstall-hook:
+ rm -f $(DESTDIR)$(sbindir)/fsck.exfat
diff --git a/fuse/Makefile.am b/fuse/Makefile.am
index 4d1debf..62ecaf1 100644
--- a/fuse/Makefile.am
+++ b/fuse/Makefile.am
@@ -25,3 +25,9 @@ mount_exfat_fuse_SOURCES = main.c
mount_exfat_fuse_CPPFLAGS = -I$(top_srcdir)/libexfat
mount_exfat_fuse_CFLAGS = $(FUSE_CFLAGS)
mount_exfat_fuse_LDADD = ../libexfat/libexfat.a $(FUSE_LIBS)
+
+install-exec-hook:
+ ln -sf $(sbin_PROGRAMS) $(DESTDIR)$(sbindir)/mount.exfat
+
+uninstall-hook:
+ rm -f $(DESTDIR)$(sbindir)/mount.exfat
diff --git a/mkfs/Makefile.am b/mkfs/Makefile.am
index d1af1f1..190126a 100644
--- a/mkfs/Makefile.am
+++ b/mkfs/Makefile.am
@@ -39,3 +39,9 @@ mkexfatfs_SOURCES = \
vbr.h
mkexfatfs_CPPFLAGS = -I$(top_srcdir)/libexfat
mkexfatfs_LDADD = ../libexfat/libexfat.a
+
+install-exec-hook:
+ ln -sf $(sbin_PROGRAMS) $(DESTDIR)$(sbindir)/mkfs.exfat
+
+uninstall-hook:
+ rm -f $(DESTDIR)$(sbindir)/mkfs.exfat