btrfs-progs: Add uninstall targets to Makefiles.
Signed-off-by: Nils Steinger <git@n-st.de> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
4a67a68569
commit
2e1accf4fd
|
@ -91,6 +91,10 @@ install-man: man
|
||||||
$(INSTALL) -m 644 $(GZ_MAN8) $(DESTDIR)$(man8dir)
|
$(INSTALL) -m 644 $(GZ_MAN8) $(DESTDIR)$(man8dir)
|
||||||
$(LNS) btrfs-check.8.gz $(DESTDIR)$(man8dir)/btrfsck.8.gz
|
$(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:
|
clean:
|
||||||
$(QUIET_RM)$(RM) *.xml *.xml+ *.5 *.5.gz *.8 *.8.gz
|
$(QUIET_RM)$(RM) *.xml *.xml+ *.5 *.5.gz *.8 *.8.gz
|
||||||
|
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -257,6 +257,13 @@ $(INSTALLDIRS):
|
||||||
@echo "Making install in $(patsubst install-%,%,$@)"
|
@echo "Making install in $(patsubst install-%,%,$@)"
|
||||||
$(Q)$(MAKE) $(MAKEOPTS) -C $(patsubst install-%,%,$@) 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)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
-include $(objects:.o=.o.d) $(cmd-objects:.o=.o.d) $(subst .btrfs,, $(filter-out btrfsck.o.d, $(progs:=.o.d)))
|
-include $(objects:.o=.o.d) $(cmd-objects:.o=.o.d) $(subst .btrfs,, $(filter-out btrfsck.o.d, $(progs:=.o.d)))
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue