summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-05-26 23:29:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-05-26 23:29:43 -0400
commit7e92bc9d00db4bb35b491881f54484b24d3ed97d (patch)
tree4f0e4fa0f4f4bcf9410cb30c7f09b96cf6aa7229
parentd91e82cbaff296db7366328af5aad88c97932121 (diff)
downloadbfs-7e92bc9d00db4bb35b491881f54484b24d3ed97d.tar.xz
build/config: Simplify top-level rule with .ALLSRC
-rw-r--r--build/config.mk14
1 files 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