[PATCH] tools/ocaml: Add an uninstall target to the bindings test

Julian Vetter posted 1 patch 1 week ago
tools/ocaml/tests/bindings/Makefile | 3 +++
1 file changed, 3 insertions(+)
[PATCH] tools/ocaml: Add an uninstall target to the bindings test
Posted by Julian Vetter 1 week ago
tools/ocaml/tests/Makefile calls into bindings/ for uninstall, but the
bindings/Makefile has no such target, thus 'make uninstall' fails with:

make[2]: *** No rule to make target 'uninstall'.  Stop.

So, add an uninstall target which removes the test-ocaml-bindings from
$(LIBEXEC)/tests, just like the tests in tools/tests/ do.

Signed-off-by: Julian Vetter <julian.vetter@vates.tech>
---
 tools/ocaml/tests/bindings/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/ocaml/tests/bindings/Makefile b/tools/ocaml/tests/bindings/Makefile
index 02255780bd..73f2660af5 100644
--- a/tools/ocaml/tests/bindings/Makefile
+++ b/tools/ocaml/tests/bindings/Makefile
@@ -31,4 +31,7 @@ install: all
 	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC)/tests
 	$(INSTALL_PROG) test-ocaml-bindings $(DESTDIR)$(LIBEXEC)/tests
 
+uninstall:
+	$(RM) -- $(DESTDIR)$(LIBEXEC)/tests/test-ocaml-bindings
+
 include $(OCAML_TOPLEVEL)/Makefile.rules
-- 
2.53.0



-- 
Julian Vetter | Vates Hypervisor & Kernel Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
Re: [PATCH] tools/ocaml: Add an uninstall target to the bindings test
Posted by Andrew Cooper 6 days, 22 hours ago
On 16/11/2026 2:24 pm, Julian Vetter wrote:
> tools/ocaml/tests/Makefile calls into bindings/ for uninstall, but the
> bindings/Makefile has no such target, thus 'make uninstall' fails with:
>
> make[2]: *** No rule to make target 'uninstall'.  Stop.
>
> So, add an uninstall target which removes the test-ocaml-bindings from
> $(LIBEXEC)/tests, just like the tests in tools/tests/ do.
>
> Signed-off-by: Julian Vetter <julian.vetter@vates.tech>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

But, we should really just remove the uninstall targets.  They're in a
perpetual state of broken.