tools/debugger: Allow make to recurse into debugger/
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 6 Dec 2021 17:02:06 +0000 (17:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Dec 2021 20:27:12 +0000 (20:27 +0000)
Avoid the need for explicite rules to recurse into debugger/* dirs by
adding a Makefile in debugger/.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/Makefile
tools/debugger/Makefile [new file with mode: 0644]

index 8936b754c88c7b79695f9c81c718190403c3b6fc..79b4c7e3dec78be9028ef62f8fa9c641711f866f 100644 (file)
@@ -32,8 +32,7 @@ SUBDIRS-$(CONFIG_GOLANG) += golang
 SUBDIRS-y += xl
 SUBDIRS-y += helpers
 SUBDIRS-$(CONFIG_X86) += xenpaging
-SUBDIRS-$(CONFIG_X86) += debugger/gdbsx
-SUBDIRS-$(CONFIG_X86) += debugger/kdd
+SUBDIRS-$(CONFIG_X86) += debugger
 SUBDIRS-$(CONFIG_TESTS) += tests
 
 SUBDIRS-y += python
@@ -272,30 +271,6 @@ subdir-clean-qemu-xen-dir:
 
 subdir-uninstall-qemu-xen-dir: ;
 
-subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony
-       $(MAKE) -C debugger/gdbsx clean
-
-subdir-install-debugger/gdbsx: .phony
-       $(MAKE) -C debugger/gdbsx install
-
-subdir-all-debugger/gdbsx: .phony
-       $(MAKE) -C debugger/gdbsx all
-
-subdir-uninstall-debugger/gdbsx: .phony
-       $(MAKE) -C debugger/gdbsx uninstall
-
-subdir-clean-debugger/kdd subdir-distclean-debugger/kdd: .phony
-       $(MAKE) -C debugger/kdd clean
-
-subdir-install-debugger/kdd: .phony
-       $(MAKE) -C debugger/kdd install
-
-subdir-uninstall-debugger/kdd: .phony
-       $(MAKE) -C debugger/kdd uninstall
-
-subdir-all-debugger/kdd: .phony
-       $(MAKE) -C debugger/kdd all
-
 subtree-force-update:
 ifeq ($(CONFIG_QEMU_XEN),y)
        $(MAKE) qemu-xen-dir-force-update
diff --git a/tools/debugger/Makefile b/tools/debugger/Makefile
new file mode 100644 (file)
index 0000000..51efd36
--- /dev/null
@@ -0,0 +1,8 @@
+XEN_ROOT=$(CURDIR)/../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+SUBDIRS-y := gdbsx
+SUBDIRS-y += kdd
+
+.PHONY: all clean install distclean uninstall
+all clean install distclean uninstall: %: subdirs-%