Make installing mkntfs /sbin symlinks dependent on ENABLE_MOUNT_HELPER.

We shouldn't install anything into /sbin unless ENABLE_MOUNT_HELPER is
on, which is only true for Linux (these are Linux-specific symlinks).
pull/2/head
Erik Larsson 2015-06-23 06:26:52 +02:00
parent 99cb156ae5
commit 78ad037c66
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ extras: libs $(EXTRA_PROGRAMS)
# mkfs.ntfs[.8] hard link
if ENABLE_MOUNT_HELPER
install-exec-hook:
$(INSTALL) -d $(DESTDIR)/sbin
$(LN_S) -f $(sbindir)/mkntfs $(DESTDIR)/sbin/mkfs.ntfs
@ -160,5 +161,6 @@ install-data-hook:
uninstall-local:
$(RM) -f $(DESTDIR)/sbin/mkfs.ntfs
$(RM) -f $(DESTDIR)$(man8dir)/mkfs.ntfs.8
endif
endif