mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Running "make uninstall" does not remove all installed files, a situation which might cause link related issues if xen is re-installed in a different location. In order to make uninstall correctly remove the files it is best the process should be done recursively by mirroring each "install" target with an "uninstall" who removes the installed files. An exception to this rule is uninstalling the files produced by "qemu-xen-dir-remote" and "qemu-xen-traditional-dir", which are external to the project. These projects do not implement an "uninstall" target so the files have to be removed manually. Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
31 lines
819 B
Makefile
31 lines
819 B
Makefile
XEN_ROOT=$(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
# In order to link against a package in Go, the package must live in a
|
|
# directory tree in the way that Go expects. To make this possible,
|
|
# there must be a directory such that we can set GOPATH=${dir}, and
|
|
# the package will be under $GOPATH/src/${full-package-path}.
|
|
|
|
# So we set XEN_GOPATH to $XEN_ROOT/tools/golang. The xenlight
|
|
# "package build" directory ($PWD/xenlight) will create the "package
|
|
# source" directory in the proper place. Go programs can use this
|
|
# package by setting GOPATH=$(XEN_GOPATH).
|
|
|
|
SUBDIRS-y = xenlight
|
|
|
|
.PHONY: build all
|
|
all build: subdirs-all
|
|
|
|
.PHONY: install
|
|
install: subdirs-install
|
|
|
|
.PHONY: uninstall
|
|
uninstall: subdirs-uninstall
|
|
|
|
.PHONY: clean
|
|
clean: subdirs-clean
|
|
$(RM) -r src pkg
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|