CI: run `make distcheck` instead of `make check`
[tinc] / Makefile.am
index de8bdf7..0956cbe 100644 (file)
@@ -22,6 +22,15 @@ configure-version:
 
 # Triggering the README target means we are building a distribution (make dist).
 README: configure-version README.md
+       ln -sf README.md README
+
+CLEANFILES = README
+
+# If we're running on a CI server, we may not be able to remove some test
+# artifacts without using sudo because they are created by tincd running
+# with root privileges.
+clean-local:
+       if test -n "${CI}"; then sudo rm -rf test/*.test.*/; fi
 
 ChangeLog:
        (cd $(srcdir) && git log) > ChangeLog