Commit 3276406d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 339a7868
...@@ -59,4 +59,8 @@ install: $(MANS) ...@@ -59,4 +59,8 @@ install: $(MANS)
$(Q) mkdir -p $(DESTDIR)$(MAN8DIR) $(Q) mkdir -p $(DESTDIR)$(MAN8DIR)
$(Q) install -m 644 $(MANS) $(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
...@@ -47,3 +47,9 @@ install-criu: criu ...@@ -47,3 +47,9 @@ install-criu: criu
install: install-man install-lib install-criu install: install-man install-lib install-criu
@true @true
.PHONY: install .PHONY: install
uninstall:
$(Q) $(MAKE) -C Documentation $@
$(Q) $(MAKE) -C lib $@
$(Q) $(MAKE) -C criu $@
.PHONY: uninstall
...@@ -222,6 +222,12 @@ install: criu ...@@ -222,6 +222,12 @@ install: criu
$(Q) install -m 644 $(UAPI_HEADERS) $(DESTDIR)$(INCLUDEDIR) $(Q) install -m 644 $(UAPI_HEADERS) $(DESTDIR)$(INCLUDEDIR)
.PHONY: install .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. # Final @all target.
all: criu all: criu
......
...@@ -54,3 +54,20 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in ...@@ -54,3 +54,20 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in
$(E) " INSTALL " crit $(E) " INSTALL " crit
$(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX)
.PHONY: install .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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment