From 387dc046f40379b97eb54b4c6d4c6dbccdf8342e Mon Sep 17 00:00:00 2001 From: Shiz Date: Mon, 1 May 2023 16:28:28 +0200 Subject: [PATCH] build: add volatile_$module variable for targets that need to be always rebuilt --- GNUmakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 140afe5..be0bd9b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -37,6 +37,8 @@ ldflags := -Wl,--gc-sections -static-libgcc all: build +FORCE: + .PHONY: \ build-docker \ clean \ @@ -44,7 +46,8 @@ code-format \ print-building \ print-release \ run-tests \ -version +version \ +FORCE release: \ print-release \ @@ -193,6 +196,8 @@ $$(depdir_$1_$2_$3): $$(objdir_$1_$2_$3): $(V)mkdir -p $$@ +$$(volatile_$3:%.c=$$(objdir_$1_$2_$3)/%.o): FORCE + $$(objdir_$1_$2_$3)/%.o: $$(srcdir_$3)/%.c \ | $$(depdir_$1_$2_$3) $$(objdir_$1_$2_$3) $(V)echo ... $$@