Skip to content

Commit

Permalink
Makefile.am: Use 'dist-hook' to clean up <tests/unit/Makefile>
Browse files Browse the repository at this point in the history
Closes: <#1027>
Reported-by: Chris Hofstaedtler <[email protected]>
Cc: Iker Pedrosa <[email protected]>
Co-developed-by: Serge Hallyn <[email protected]>
Signed-off-by: Serge Hallyn <[email protected]>
Co-developed-by: Alejandro Colomar <[email protected]>
Signed-off-by: Alejandro Colomar <[email protected]>
Cherry-picked-from: 488bf4a ("Makefile.am: Use 'dist-hook' to clean up <tests/unit/Makefile>")
Signed-off-by: Alejandro Colomar <[email protected]>
  • Loading branch information
alejandro-colomar committed Jun 28, 2024
1 parent 610b079 commit 514beca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 514beca

Please sign in to comment.