Make makefile automatic

This commit is contained in:
Manna Harbour 2021-08-16 21:32:07 +10:00
parent 14d94ba4e8
commit e344fcab98

View File

@ -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 $< > $@