janneke pushed a commit to branch wip-tarball
in repository guix.
commit c9249e3374465817c6e1d8bbcd10f0411425a4fe
Author: Janneke Nieuwenhuizen <[email protected]>
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.
Change-Id: I7b8a3d9ef1e4a4eddb7c329a2c27f481a451b84b
---
doc/local.mk | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/doc/local.mk b/doc/local.mk
index bc75cb97e2..7751aefd7b 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -292,3 +292,24 @@ $(foreach lang, $(MANUAL_LANGUAGES),
\
$(eval $(call version.texi-from-git,,doc/guix.texi,))
$(foreach lang, $(MANUAL_LANGUAGES), \
$(eval $(call
version.texi-from-git,-manual.$(lang),po/doc/guix-manual.$(lang).po,.$(lang))))
+
+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 $(srcdir)/doc/stamp*
+ 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)/po/guix/*.pot
$(srcdir)/po/packages/*.pot
+
+man-clean:
+ rm -f $(srcdir)/doc/*.1