build: Include top-level FMF plan into dist tarballs

This fixes tmt's `discover: dist-git-source` [1], so that we can
eventually drop the horrible fmf `ref:` hack in packit.yaml.

[1] https://src.fedoraproject.org/rpms/cockpit/pull-request/66
This commit is contained in:
Martin Pitt 2022-06-13 10:37:53 +02:00 committed by Martin Pitt
parent 9aabe52924
commit a40b56a6ce

View file

@ -24,7 +24,7 @@ CLEANFILES += cockpit-*.tar.xz
EXTRA_DIST += $(EXTRA_FILES)
distdir: $(DISTFILES)
@if [ -e '$(srcdir)/.git' ]; then \
git -C '$(srcdir)' ls-files -x test/reference test tools > .extra_dist.tmp && \
git -C '$(srcdir)' ls-files -x test/reference .fmf plans test tools > .extra_dist.tmp && \
mv .extra_dist.tmp '$(srcdir)/.extra_dist'; fi
$(MAKE) $(AM_MAKEFLAGS) distdir-am EXTRA_FILES="$$(tr '\n' ' ' < $(srcdir)/.extra_dist) .extra_dist"
$(srcdir)/src/client/add-metainfo-releases --version '$(VERSION)' '$(distdir)'/src/client/*.metainfo.xml