diff --git a/.papr.yml b/.papr.yml index f7044e5d..79843580 100644 --- a/.papr.yml +++ b/.papr.yml @@ -47,6 +47,7 @@ tests: - ci/ci-commitmessage-submodules.sh - ci/build-check.sh - ci/ci-release-build.sh + - make dist-then-build artifacts: - test-suite.log diff --git a/Makefile.am b/Makefile.am index 85542edb..4850cddd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -155,4 +155,14 @@ release-tarball-embedded: mv ostree-embeddeps-$${GITVERSION}.tar{.tmp,}; \ gzip -f ostree-embeddeps-$${GITVERSION}.tar +# `make dist` + `make`; explicitly not the other +# parts of distcheck like `make uninstall` since +# we don't care about that. +dist-then-build: dist + rm $(distdir) -rf && tar -xf $(distdir).tar.xz + cd $(distdir) && mkdir _build && cd _build && \ + ../configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc && \ + $(MAKE) && make install DESTDIR=$$(pwd)/_install && \ + rm -rf $(distdir) + -include $(top_srcdir)/git.mk