From e344fcab9845b59d835117642c228c7449018649 Mon Sep 17 00:00:00 2001 From: Manna Harbour <51143715+manna-harbour@users.noreply.github.com> Date: Mon, 16 Aug 2021 21:32:07 +1000 Subject: [PATCH] Make makefile automatic --- .github/workflows/src/makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/src/makefile b/.github/workflows/src/makefile index 2f47642..4e8116d 100644 --- a/.github/workflows/src/makefile +++ b/.github/workflows/src/makefile @@ -1,7 +1,9 @@ # Copyright 2021 Manna Harbour # https://github.com/manna-harbour/miryoku -all: ../build-example-corne-nice_nano.yml ../build-example-tbkmini-nice_nano_v2.yml ../build-inputs.yml ../test-boards.yml ../test-build.yml ../test-configs.yml ../test-controllers.yml ../test-shields.yml +source := $(wildcard *.yml.m4) +targets := $(source:%.yml.m4=../%.yml) +all: $(targets) ../%.yml: %.yml.m4 include/* makefile m4 -P include/init.yml.m4 $< > $@