Fixed "make distcheck" (finally)

Also fixed "make dist" from read-only unpacked tarball.
This commit is contained in:
Evgeny Grin (Karlson2k)
2022-01-09 20:32:09 +03:00
parent a8b2cce869
commit 0a76e006e5
+10 -3
View File
@@ -58,11 +58,18 @@ dist-hook: dist-po
rm -f '$(distdir)/pre-dist-hook-dummy'
@rm -f pre-dist-hook-dummy
pre-dist-hook:
pre-dist-hook: pre-dist-hook-doc
@echo "Preparing to make dist"
@$(am__cd) doc && $(MAKE) $(AM_MAKEFLAGS) update-stamp
.PHONY: pre-dist-hook
pre-dist-hook-doc:
@echo "Preparing to make dist in doc"
@if test -w '$(top_srcdir)/doc' ; then \
$(am__cd) doc && $(MAKE) $(AM_MAKEFLAGS) update-stamp; \
else \
echo "Source tree is read-only, skipping force doc update"; \
fi;
.PHONY: pre-dist-hook pre-dist-hook-doc
distclean-local: distclean-po