summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-10-08 12:47:39 -0700
committerMatt Clay <matt@mystile.com>2018-10-11 18:34:06 -0700
commit19c0511f571aa19d0448d36817c81657a782c050 (patch)
tree0c77f633ead9caa68f8676bc6a9a412bf5989adb /Makefile
parente43869cca99ed1aeee1c1f4796a05cfd28f3c58e (diff)
downloadansible-19c0511f571aa19d0448d36817c81657a782c050.tar.gz
Add link check to `make sdist`.
This will cause `make sdist` to fail on platforms which create hard links of symbolic links as regular files, such as MacOS (Darwin). This prevents accidental creation of an sdist tarball without the necessary symbolic links.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a7d21b3a60..c5b0119932 100644
--- a/Makefile
+++ b/Makefile
@@ -231,8 +231,12 @@ install_manpages:
gzip -9 $(wildcard ./docs/man/man1/ansible*.1)
cp $(wildcard ./docs/man/man1/ansible*.1.gz) $(PREFIX)/man/man1/
+.PHONY: sdist_check
+sdist_check:
+ $(PYTHON) packaging/sdist/check-link-behavior.py
+
.PHONY: sdist
-sdist: clean docs
+sdist: sdist_check clean docs
$(PYTHON) setup.py sdist
.PHONY: sdist_upload