janneke pushed a commit to branch wip-tarball in repository guix. commit b739b26f16b95d4b02cceddcb1eafa4e34134583 Author: Janneke Nieuwenhuizen <jann...@gnu.org> AuthorDate: Fri Sep 8 10:46:30 2023 +0200
maint: Ensure generated file reproducibility for dist. * doc/local.mk (override $(srcdir)/doc/stamp-vti): New target override. (doc-clean, man-clean): New targets. (auto-clean): Depend on it in new target. (DIST_CONFIGURE_FLAGS): New variable. (dist-hook): Use them. --- doc/local.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/local.mk b/doc/local.mk index 936a561986..a81767057e 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -6,6 +6,7 @@ # Copyright © 2016, 2018 Mathieu Lirzin <m...@gnu.org> # Copyright © 2018, 2021 Julien Lepiller <jul...@lepiller.eu> # Copyright © 2019 Timothy Sample <samp...@ngyro.com> +# Copyright © 2024 Janneke Nieuwenhuizen <jann...@gnu.org> # # This file is part of GNU Guix. # @@ -268,3 +269,23 @@ override $(srcdir)/doc/stamp-vti: $(srcdir)/doc/guix.texi echo "@set VERSION $(VERSION)"; } > $@-t; \ mv $@-t $@ @cp $@ $(srcdir)/doc/version.texi + +DIST_CONFIGURE_FLAGS = \ + --localstatedir=/var \ + --sysconfdir=/etc + +dist: auto-clean +auto-clean: maintainer-clean-vti doc-clean man-clean + rm -f ABOUT-NLS INSTALL + rm -f aclocal.m4 configure libtool Makefile.in + git clean -fdx -- build-aux + ./bootstrap + ./configure $(DIST_CONFIGURE_FLAGS) + +doc-clean: + rm -f $(DOT_FILES:%.dot=%.png) + rm -f $(filter-out %D%/guix.texi %D%/guix-cookbook.texi, $(info_TEXINFOS)) + rm -f $(srcdir)/po/doc/*.pot $(srcdir)/guix/*.pot $(srcdir)/packages/*.pot + +man-clean: + rm -f $(srcdir)/doc/*.1