Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2016-04-20 12:11:52 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2016-04-27 14:13:35 +0300
commit3276406d656743180109660b689cf3458c7ad0eb (patch)
tree0eaa0395c963accd74008253751685681e60c620 /lib/Makefile
parent339a7868b915930c4ed303649c71e2e6eea6bb0e (diff)
build: Add uninstall action
While most are handled from the scratch there is a significant problem with python setup. So I added some preliminaty solution, probably someohe with good knowledge of how setup.py works improve it later. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile17
1 files changed, 17 insertions, 0 deletions
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