Makefile: Fix uninstall target
authorPetre Pircalabu <ppircalabu@bitdefender.com>
Thu, 27 Jul 2017 17:08:27 +0000 (20:08 +0300)
committerWei Liu <wei.liu2@citrix.com>
Fri, 28 Jul 2017 16:47:42 +0000 (17:47 +0100)
commitf2b40dababedcd8355bf3e85d00baf17f9827131
treea8de3413e53086d0cccb9b8ae24844c262d6e75b
parenta3a87d27a3de57ab5591d5d2604e6a5c6c806eab
Makefile: Fix uninstall target

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>
74 files changed:
Makefile
docs/Makefile
m4/stubdom.m4
stubdom/Makefile
tools/Makefile
tools/Rules.mk
tools/blktap2/Makefile
tools/blktap2/control/Makefile
tools/blktap2/drivers/Makefile
tools/blktap2/include/Makefile
tools/blktap2/lvm/Makefile
tools/blktap2/vhd/Makefile
tools/blktap2/vhd/lib/Makefile
tools/console/Makefile
tools/debugger/gdbsx/Makefile
tools/debugger/kdd/Makefile
tools/examples/Makefile
tools/firmware/Makefile
tools/flask/Makefile
tools/flask/policy/Makefile.common
tools/flask/utils/Makefile
tools/fuzz/Makefile
tools/fuzz/libelf/Makefile
tools/fuzz/x86_instruction_emulator/Makefile
tools/golang/Makefile
tools/golang/xenlight/Makefile
tools/helpers/Makefile
tools/hotplug/FreeBSD/Makefile
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/systemd/Makefile
tools/hotplug/Makefile
tools/hotplug/NetBSD/Makefile
tools/hotplug/common/Makefile
tools/include/Makefile
tools/libfsimage/Makefile
tools/libfsimage/Rules.mk
tools/libfsimage/common/Makefile
tools/libfsimage/ext2fs-lib/Makefile
tools/libfsimage/ext2fs/Makefile
tools/libfsimage/fat/Makefile
tools/libfsimage/iso9660/Makefile
tools/libfsimage/reiserfs/Makefile
tools/libfsimage/ufs/Makefile
tools/libfsimage/xfs/Makefile
tools/libfsimage/zfs/Makefile
tools/libs/Makefile
tools/libs/call/Makefile
tools/libs/devicemodel/Makefile
tools/libs/evtchn/Makefile
tools/libs/foreignmemory/Makefile
tools/libs/gnttab/Makefile
tools/libs/toollog/Makefile
tools/libvchan/Makefile
tools/libxc/Makefile
tools/libxl/Makefile
tools/memshr/Makefile
tools/misc/Makefile
tools/ocaml/Makefile
tools/ocaml/libs/Makefile
tools/ocaml/test/Makefile
tools/ocaml/xenstored/Makefile
tools/pygrub/Makefile
tools/python/Makefile
tools/tests/Makefile
tools/xcutils/Makefile
tools/xenmon/Makefile
tools/xenpaging/Makefile
tools/xenpmd/Makefile
tools/xenstat/Makefile
tools/xenstat/libxenstat/Makefile
tools/xenstat/xentop/Makefile
tools/xenstore/Makefile
tools/xentrace/Makefile
tools/xl/Makefile