diff --git a/Makefile.am b/Makefile.am index 22bbd561..a92024fb 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