From 7e92bc9d00db4bb35b491881f54484b24d3ed97d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 26 May 2025 23:29:43 -0400 Subject: build/config: Simplify top-level rule with .ALLSRC --- build/config.mk | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/build/config.mk b/build/config.mk index 6296168..7f8662a 100644 --- a/build/config.mk +++ b/build/config.mk @@ -7,21 +7,15 @@ include build/prelude.mk include build/exports.mk # All configuration steps -config: gen/config.mk +config: gen/config.mk gen/config.h .PHONY: config -# Makefile fragments generated by `./configure` -MKS := \ - gen/vars.mk \ - gen/flags.mk \ - gen/pkgs.mk - # The main configuration file, which includes the others -gen/config.mk: ${MKS} gen/config.h +gen/config.mk: gen/vars.mk gen/flags.mk gen/pkgs.mk ${MSG} "[ GEN] $@" @printf '# %s\n' "$@" >$@ - @printf 'include %s\n' ${MKS} >>$@ - ${VCAT} gen/config.mk + @printf 'include %s\n' ${.ALLSRC} >>$@ + ${VCAT} $@ .PHONY: gen/config.mk # Saves the configurable variables -- cgit v1.2.3