From 19c0511f571aa19d0448d36817c81657a782c050 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 8 Oct 2018 12:47:39 -0700 Subject: 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. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.1