summaryrefslogtreecommitdiff
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorNils Steinger <git@n-st.de>2014-07-25 15:41:57 +0200
committerDavid Sterba <dsterba@suse.cz>2014-08-22 15:07:02 +0200
commit2e1accf4fd47e90584b1741ff53bf7eec41d5510 (patch)
tree2c90ed525850eeb07e90be64bd475710a19b9b4e /Documentation/Makefile
parent4a67a68569cbdf0af82827fb146bde1a0dc0a7fd (diff)
btrfs-progs: Add uninstall targets to Makefiles.
Signed-off-by: Nils Steinger <git@n-st.de> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index eafbac7e..ef4f1bdc 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -91,6 +91,10 @@ install-man: man
$(INSTALL) -m 644 $(GZ_MAN8) $(DESTDIR)$(man8dir)
$(LNS) btrfs-check.8.gz $(DESTDIR)$(man8dir)/btrfsck.8.gz
+uninstall:
+ cd $(DESTDIR)$(man8dir); rm -f btrfs-check.8.gz $(GZ_MAN8)
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(man8dir)
+
clean:
$(QUIET_RM)$(RM) *.xml *.xml+ *.5 *.5.gz *.8 *.8.gz