From 514beca807598e378087c24e37f21096d6821314 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 28 Jun 2024 12:21:01 +0200 Subject: [PATCH] Makefile.am: Use 'dist-hook' to clean up Closes: Reported-by: Chris Hofstaedtler Cc: Iker Pedrosa Co-developed-by: Serge Hallyn Signed-off-by: Serge Hallyn Co-developed-by: Alejandro Colomar Signed-off-by: Alejandro Colomar Cherry-picked-from: 488bf4a51982 ("Makefile.am: Use 'dist-hook' to clean up ") Signed-off-by: Alejandro Colomar --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.am b/Makefile.am index 22bbd561d..a92024fbc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,4 +15,15 @@ SUBDIRS += man endif CLEANFILES = man/8.out man/po/remove-potcdate.* man/*/login.defs.d man/*/*.mo + EXTRA_DIST = tests/ + +dist-hook: + chmod -R u+w $(distdir)/tests + chmod u+w $(distdir) + mv $(distdir)/tests/unit $(distdir)/realunittest + mv $(distdir)/tests/tests $(distdir)/realtests + rm -rf $(distdir)/tests + mv $(distdir)/realtests $(distdir)/tests + rm -rf $(distdir)/tests/unit $(distdir)/tests/Makefile* + mv $(distdir)/realunittest $(distdir)/tests/unit -- 2.47.3