mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +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>
35 lines
633 B
Makefile
35 lines
633 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include ./Rules.mk
|
|
|
|
.PHONY: all
|
|
all:
|
|
$(MAKE) -C gx
|
|
$(MAKE) -C xg
|
|
$(MAKE) gdbsx
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f xg_all.a gx_all.a gdbsx
|
|
set -e; for d in xg gx; do $(MAKE) -C $$d clean; done
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
set -e; for d in xg gx; do $(MAKE) -c $$d distclean; done
|
|
|
|
.PHONY: install
|
|
install: all
|
|
[ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
|
$(INSTALL_PROG) gdbsx $(DESTDIR)$(sbindir)/gdbsx
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(sbindir)/gdbsx
|
|
|
|
gdbsx: gx/gx_all.a xg/xg_all.a
|
|
$(CC) -o $@ $^
|
|
|
|
xg/xg_all.a:
|
|
$(MAKE) -C xg
|
|
gx/gx_all.a:
|
|
$(MAKE) -C gx
|