[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70169] [PATCH 7/7] maint: Ensure generated file reproducibility for
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#70169] [PATCH 7/7] maint: Ensure generated file reproducibility for dist. |
Date: |
Wed, 3 Apr 2024 21:11:09 +0200 |
* 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 893c99e1b1..a8e59bb7e6 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -280,3 +280,24 @@ $(eval $(call version.texi-from-git,vti,doc/guix.texi,))
$(foreach lang, $(MANUAL_LANGUAGES), \
$(eval i=$(shell echo $$(($(i)+1)))) \
$(eval $(call
version.texi-from-git,$(i),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
--
2.41.0
[bug#70169] [PATCH v2 00/12] Reproducible `make dist' tarball in defiance of Autotools and Gettext, Janneke Nieuwenhuizen, 2024/04/06