[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 02/12] website: Makefile.am: use common guix shell command.
From: |
Denis 'GNUtoo' Carikli |
Subject: |
[PATCH v1 02/12] website: Makefile.am: use common guix shell command. |
Date: |
Mon, 4 Nov 2024 00:18:55 +0100 |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
website/Makefile.am | 54 +++++++++++++++++++++------------------------
1 file changed, 25 insertions(+), 29 deletions(-)
diff --git a/website/Makefile.am b/website/Makefile.am
index 26f43c1..2d95b7d 100644
--- a/website/Makefile.am
+++ b/website/Makefile.am
@@ -27,15 +27,17 @@ endif
index.html: index.html.tmpl
sed -e "s#WEBSITE_PREFIX#$(WEBSITE_PREFIX)#g" "$^" > "$@"
-if WANT_GUIX
-DOT_CMD = \
-guix time-machine \
+GUIX_SHELL = guix time-machine \
--commit=$(GUIX_REVISION) \
-- \
shell \
- --system=i686-linux \
- --container \
- graphviz \
+ --system=i686-linux \
+ $(SENTINEL)
+
+if WANT_GUIX
+DOT_CMD = $(GUIX_SHELL) \
+ --container \
+ graphviz \
-- \
dot
else
@@ -74,24 +76,21 @@ site.cfg: site.cfg.tmpl
sed -e "s#WEBSITE_PREFIX#$(WEBSITE_PREFIX)#g" "$^" > "$@"
if WANT_GUIX
-BUILD_SH_CMD = \
-guix time-machine \
- --commit=c15a1cd88f80a90437f4b0159f22dfc84b9e6851 \
- -- shell \
- --container \
- --network \
- --emulate-fhs \
- $(GUIX_SHARE_OPTIONS) \
- bash \
- coreutils \
- findutils \
- git \
- grep \
- nss-certs \
- pandoc \
- sed \
- -- \
- ./build.sh
+BUILD_SH_CMD = $(GUIX_SHELL) \
+ --container \
+ --network \
+ --emulate-fhs \
+ $(GUIX_SHARE_OPTIONS) \
+ bash \
+ coreutils \
+ findutils \
+ git \
+ grep \
+ nss-certs \
+ pandoc \
+ sed \
+ -- \
+ ./build.sh
else
BUILD_SH_CMD = ./build.sh
endif
@@ -100,9 +99,7 @@ build: site.cfg pages/footer.include
$(BUILD_SH_CMD) $(BUILD_OPTIONS)
if WANT_GUIX
-CHECK_SH_CMD = \
-guix shell \
- --container \
+CHECK_SH_CMD = $(GUIX_SHELL) \
--network \
--emulate-fhs \
bash \
@@ -138,8 +135,7 @@ help:
"website.tar.gz # Create a tarball of the website"
if WANT_GUIX
-SERVE_SH_CMD = \
-guix shell \
+SERVE_SH_CMD = $(GUIX_SHELL) \
--container \
--network \
--emulate-fhs \
--
2.46.0
- [PATCH v1 00/12] First patches for a proper manual., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 11/12] manual: Add sections about installing and building GNU Boot., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 04/12] website: use Guix v1.4.0., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 03/12] website: README: document how to build the website without Guix., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 08/12] manual: Add section about supported computer parts and peripherals., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 01/12] website: Makefile.am: wrap Guix commands instead of targets., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 12/12] manual: Add section about using GNU Boot., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 02/12] website: Makefile.am: use common guix shell command.,
Denis 'GNUtoo' Carikli <=
- [PATCH v1 07/12] manual: Add list of compatible computers., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 09/12] manual: Add section on supported operating systems., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 10/12] manual: add section about the images we released., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 05/12] Add minimalist GNU Boot manual., Denis 'GNUtoo' Carikli, 2024/11/03
- [PATCH v1 06/12] manual: Describe the GNU Boot project., Denis 'GNUtoo' Carikli, 2024/11/03