From: Alejandro Colomar Date: Fri, 28 Jun 2024 10:21:01 +0000 (+0200) Subject: Makefile.am: Use 'dist-hook' to clean up X-Git-Tag: 4.15.3~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=514beca807598e378087c24e37f21096d6821314;p=thirdparty%2Fshadow.git 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 --- 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