Skip to content
Snippets Groups Projects
Commit 7213dded authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Add new Makefile target to rebuild the whole dist


Due to the fact how the automake system works it doesn't rebuild already
prebuild files in distcheck. This lead to a bug, where a rebuild of the
documentation was failing because we missed the fact that the files were
missing from the archive.

By adding distrebuildcheck we workaround that issue by running a
maintainer-clean which also removes prebuild files.

Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent a47dc554
No related branches found
No related tags found
No related merge requests found
...@@ -1406,6 +1406,19 @@ distcheck-hook: ...@@ -1406,6 +1406,19 @@ distcheck-hook:
distcheck-release dist-release: export BUILD_RELEASE = 1 distcheck-release dist-release: export BUILD_RELEASE = 1
distcheck-release: distcheck distcheck-release: distcheck
distrebuildcheck: dist
set -e; \
builddir=$$(mktemp -d $(abs_srcdir)/distrebuildcheck.XXXXXXX); \
trap "echo Removing $$builddir; cd $(abs_srcdir); rm -rf $$builddir" EXIT; \
cd $$builddir; \
tar xzf $(abs_srcdir)/$(distdir).tar.gz; \
cd $(distdir); \
./configure; \
$(MAKE) maintainer-clean; \
cp $(abs_srcdir)/vcs-version .; \
./configure; \
$(MAKE) $(AM_MAKEFLAGS)
dist-release: dist dist-release: dist
set -e; \ set -e; \
for i in $(DIST_ARCHIVES); do \ for i in $(DIST_ARCHIVES); do \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment