diff options
-rw-r--r-- | Documentation/Makefile | 6 | ||||
-rw-r--r-- | Makefile.install | 6 | ||||
-rw-r--r-- | criu/Makefile | 6 | ||||
-rw-r--r-- | lib/Makefile | 17 |
4 files changed, 34 insertions, 1 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 76666d859..ddd365720 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -59,4 +59,8 @@ install: $(MANS) $(Q) mkdir -p $(DESTDIR)$(MAN8DIR) $(Q) install -m 644 $(MANS) $(DESTDIR)$(MAN8DIR) -.PHONY: clean install +uninstall: + $(E) " UNINSTALL" $(MANS) + $(Q) $(RM) $(addprefix $(DESTDIR)$(MAN8DIR)/,$(MANS)) + +.PHONY: clean install uninstall diff --git a/Makefile.install b/Makefile.install index b099c23d7..b3f555121 100644 --- a/Makefile.install +++ b/Makefile.install @@ -47,3 +47,9 @@ install-criu: criu install: install-man install-lib install-criu @true .PHONY: install + +uninstall: + $(Q) $(MAKE) -C Documentation $@ + $(Q) $(MAKE) -C lib $@ + $(Q) $(MAKE) -C criu $@ +.PHONY: uninstall diff --git a/criu/Makefile b/criu/Makefile index 3486d19d9..e9ded6768 100644 --- a/criu/Makefile +++ b/criu/Makefile @@ -222,6 +222,12 @@ install: criu $(Q) install -m 644 $(UAPI_HEADERS) $(DESTDIR)$(INCLUDEDIR) .PHONY: install +uninstall: + $(E) " UNINSTALL" criu + $(Q) $(RM) $(addprefix $(DESTDIR)$(SBINDIR)/,criu) + $(Q) $(RM) $(addprefix $(DESTDIR)$(INCLUDEDIR)/,$(notdir $(UAPI_HEADERS))) +.PHONY: uninstall + # # Final @all target. all: criu diff --git a/lib/Makefile b/lib/Makefile index f372a52bf..a6ea3f265 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -54,3 +54,20 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in $(E) " INSTALL " crit $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) .PHONY: install + +uninstall: + $(E) " UNINSTALL" $(CRIU_SO) + $(Q) $(RM) $(addprefix $(DESTDIR)$(LIBDIR)/,$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR)) + $(Q) $(RM) $(addprefix $(DESTDIR)$(LIBDIR)/,$(CRIU_SO)) + $(Q) $(RM) $(addprefix $(DESTDIR)$(LIBDIR)/,$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR).$(CRIU_SO_VERSION_MINOR)) + $(Q) $(RM) $(addprefix $(DESTDIR)$(INCLUDEDIR)/,$(notdir $(UAPI_HEADERS))) + $(E) " UNINSTALL" pkgconfig/criu.pc + $(Q) $(RM) $(addprefix $(DESTDIR)$(LIBDIR)/pkgconfig/,criu.pc) + $(E) " UNINSTALL" crit + # + # FIXME How to deal with python setup properly? + $(Q) $(RM) $(addprefix $(DESTDIR)$(BINDIR)/,crit) + $(Q) $(RM) -r $(addprefix $(DESTDIR)$(LIBDIR)/python2.7/site-packages/,pycriu) + $(Q) $(RM) $(addprefix $(DESTDIR)$(LIBDIR)/python2.7/site-packages/,crit-0.0.1-py2.7.egg-info) +# $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) +.PHONY: uninstall |