From 2e1accf4fd47e90584b1741ff53bf7eec41d5510 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Fri, 25 Jul 2014 15:41:57 +0200 Subject: btrfs-progs: Add uninstall targets to Makefiles. Signed-off-by: Nils Steinger Signed-off-by: David Sterba --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3853b873..e721e99c 100644 --- a/Makefile +++ b/Makefile @@ -257,6 +257,13 @@ $(INSTALLDIRS): @echo "Making install in $(patsubst install-%,%,$@)" $(Q)$(MAKE) $(MAKEOPTS) -C $(patsubst install-%,%,$@) install +uninstall: + $(Q)$(MAKE) $(MAKEOPTS) -C Documentation uninstall + cd $(DESTDIR)$(incdir); rm -f $(headers) + rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(incdir) + cd $(DESTDIR)$(libdir); rm -f $(lib_links) $(libs) + cd $(DESTDIR)$(bindir); rm -f btrfsck fsck.btrfs $(progs) + ifneq ($(MAKECMDGOALS),clean) -include $(objects:.o=.o.d) $(cmd-objects:.o=.o.d) $(subst .btrfs,, $(filter-out btrfsck.o.d, $(progs:=.o.d))) endif -- cgit v1.2.3