From e8e493d463a74e281c4c1b1ccce1cf6489c7596c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 30 May 2023 17:53:55 +0200 Subject: Makefile: add a comment --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 23de6d3..22da0ca 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ test/all: test/local test/docker test/local: ./test/local/test.sh +# This is deliberately excluded from test/all, because it quite destructive. .PHONY: test/linux-home test/linux-home: ./test/linux-home/test.sh -- cgit v1.2.3 From 6220b6dcaa9b4776c6d1d7047aa7c87049f9bb03 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 30 Jun 2023 11:00:41 +0200 Subject: Makefile: move the prelude to prelude.mk --- Makefile | 22 +--------------------- prelude.mk | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 prelude.mk diff --git a/Makefile b/Makefile index 22da0ca..d713dd2 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,4 @@ -MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables -unexport MAKEFLAGS -.DEFAULT_GOAL := all -.DELETE_ON_ERROR: -.SUFFIXES: -SHELL := bash -.SHELLFLAGS := -eu -o pipefail -c - -escape = $(subst ','\'',$(1)) - -define noexpand -ifeq ($$(origin $(1)),environment) - $(1) := $$(value $(1)) -endif -ifeq ($$(origin $(1)),environment override) - $(1) := $$(value $(1)) -endif -ifeq ($$(origin $(1)),command line) - override $(1) := $$(value $(1)) -endif -endef +include prelude.mk .PHONY: DO DO: diff --git a/prelude.mk b/prelude.mk new file mode 100644 index 0000000..374111e --- /dev/null +++ b/prelude.mk @@ -0,0 +1,23 @@ +# Please see https://egort.name/blog/notes/makefile.html + +MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables +unexport MAKEFLAGS +.DEFAULT_GOAL := all +.DELETE_ON_ERROR: +.SUFFIXES: +SHELL := bash +.SHELLFLAGS := -eu -o pipefail -c + +escape = $(subst ','\'',$(1)) + +define noexpand +ifeq ($$(origin $(1)),environment) + $(1) := $$(value $(1)) +endif +ifeq ($$(origin $(1)),environment override) + $(1) := $$(value $(1)) +endif +ifeq ($$(origin $(1)),command line) + override $(1) := $$(value $(1)) +endif +endef -- cgit v1.2.3 From ccdcaee38e336731216219d1be11d1986817fe3c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 28 Jan 2024 11:55:52 +0100 Subject: workflows/ci: upgrade actions --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bfb964..f9d3da0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: name: 'Test / ${{ matrix.os }}' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies run: | @@ -37,7 +37,7 @@ jobs: name: 'Test / Docker / ${{ matrix.distro }}' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test run: make 'test/docker/${{ matrix.distro }}' -- cgit v1.2.3