]> tinc-vpn.org Git - tinc/blobdiff - Makefile.am
CI: run `make distcheck` instead of `make check`
[tinc] / Makefile.am
index de8bdf72a75b2f683fde28f0cf94ffac7e3780d9..0956cbeda8b4bc294b2d12efa6603502a3ca770f 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