From 1b5203531fb7238280f20029901c8e203d54b6dd Mon Sep 17 00:00:00 2001 From: Marc Brucker <marc.brucker@inrae.fr> Date: Fri, 28 Jun 2024 15:34:09 +0200 Subject: [PATCH 1/2] fix: use /usr/bin/env to find bash /bin/bash is not available on all systems. Using /usr/bin/env makes the makefile compatible with more systems --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42a4a91..992eef8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SHELL := /bin/bash +SHELL := /usr/bin/env bash BUILD_DIR := public SESSIONS := 01_initiation 02_gitlab_depot_distant 03_branches -- GitLab From 03e8cff2a95dc67be67af4e1489c2a1bab924709 Mon Sep 17 00:00:00 2001 From: Marc Brucker <marc.brucker@inrae.fr> Date: Wed, 6 Nov 2024 10:44:34 +0100 Subject: [PATCH 2/2] feat: add dependency to all qmd file for build Make was not running when qmd files other than index.qmd were modified. This has been fixed by adding a dependency on all qmd files for the index.html targets. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 992eef8..8deec96 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ INDEXES := $(SESSIONS:%=$(BUILD_DIR)/%/index.html) build: $(INDEXES) -$(BUILD_DIR)/%/index.html:: %/index.qmd +$(BUILD_DIR)/%/index.html:: %/index.qmd %/*.qmd @echo -e "###\n# $@\n###" quarto render $< --output-dir $(BUILD_DIR) -- GitLab