Make sure that the tarball has everything.

* Makefile.am (distcheck-hook): New target.
This commit is contained in:
Timothy Sample 2019-05-21 20:37:44 -04:00
parent a4efd9359e
commit eaf8b5da61
1 changed files with 14 additions and 0 deletions

View File

@ -368,6 +368,20 @@ gen-ChangeLog:
rm -f $(distdir)/ChangeLog
mv $(distdir)/ChangeLog-t $(distdir)/ChangeLog
distcheck-hook:
set -e; \
manifest=$(distdir)/.tarball-manifest; \
test -f "$$manifest"; \
for x in `cat "$$manifest"`; \
do \
if ! test -f $(distdir)/"$$x" \
&& ! test "$$x" = .gitignore; \
then \
echo "Missing: $$x"; \
exit 1; \
fi; \
done
# Cleaning
##########