Otherwise, some lonely soft links will be left in /usr/local/bin.

Signed-off-by: Jianan Huang <huangjia...@xiaomi.com>
---
 fsck/Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/fsck/Makefile.am b/fsck/Makefile.am
index ea3b26a..f0d7f87 100644
--- a/fsck/Makefile.am
+++ b/fsck/Makefile.am
@@ -21,3 +21,11 @@ install-data-hook:
        ln -sf fsck.f2fs $(DESTDIR)/$(sbindir)/sload.f2fs
        ln -sf fsck.f2fs $(DESTDIR)/$(sbindir)/f2fslabel
        ln -sf fsck.f2fs $(DESTDIR)/$(sbindir)/inject.f2fs
+
+uninstall-hook:
+       -rm -f $(DESTDIR)/$(sbindir)/dump.f2fs
+       -rm -f $(DESTDIR)/$(sbindir)/defrag.f2fs
+       -rm -f $(DESTDIR)/$(sbindir)/resize.f2fs
+       -rm -f $(DESTDIR)/$(sbindir)/sload.f2fs
+       -rm -f $(DESTDIR)/$(sbindir)/f2fslabel
+       -rm -f $(DESTDIR)/$(sbindir)/inject.f2fs
-- 
2.43.0



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to