File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed
Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ include Makefile.inc
33SUBDIRS = kpatch-build kpatch kmod
44BUILD_DIRS = $(SUBDIRS:%=build-% )
55INSTALL_DIRS = $(SUBDIRS:%=install-% )
6+ UNINSTALL_DIRS = $(SUBDIRS:%=uninstall-% )
67CLEAN_DIRS = $(SUBDIRS:%=clean-% )
78
89.PHONY : $(SUBDIRS ) $(BUILD_DIRS ) $(INSTALL_DIRS ) $(CLEAN_DIRS )
@@ -16,6 +17,10 @@ install: $(INSTALL_DIRS)
1617$(INSTALL_DIRS ) :
1718 $(MAKE ) -C $(@:install-%=% ) install
1819
20+ uninstall : $(UNINSTALL_DIRS )
21+ $(UNINSTALL_DIRS ) :
22+ $(MAKE ) -C $(@:uninstall-%=% ) uninstall
23+
1924clean : $(CLEAN_DIRS )
2025$(CLEAN_DIRS ) :
2126 $(MAKE ) -C $(@:clean-%=% ) clean
Original file line number Diff line number Diff line change 99 $(INSTALL ) -d $(DATADIR ) /patch
1010 $(INSTALL ) -m 644 patch/* $(DATADIR ) /patch
1111
12+ uninstall :
13+ $(RM ) -R $(MODULESDIR ) /* /kpatch
14+ $(RM ) -R $(DATADIR )
15+
1216clean :
1317 $(MAKE ) -C core clean
Original file line number Diff line number Diff line change @@ -17,5 +17,9 @@ install: all
1717 $(INSTALL ) -d $(BINDIR )
1818 $(INSTALL ) kpatch-build $(BINDIR )
1919
20+ uninstall :
21+ $(RM ) -R $(LIBEXECDIR )
22+ $(RM ) $(BINDIR ) /kpatch-build
23+
2024clean :
2125 $(RM ) $(TARGETS )
Original file line number Diff line number Diff line change @@ -6,4 +6,7 @@ install: all
66 $(INSTALL ) -d $(SBINDIR )
77 $(INSTALL ) kpatch $(SBINDIR )
88
9+ uninstall :
10+ $(RM ) $(SBINDIR ) /kpatch
11+
912clean :
You can’t perform that action at this time.
0 commit comments