summaryrefslogtreecommitdiff
path: root/Makefile.d/build.mk
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-29 03:08:09 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-29 03:08:09 -0500
commitbfbb55ed6430f6b4d9bb49d4f2592ef9a5713e75 (patch)
tree763a032515d692ad787e0d5ef5b90e5339c18cfd /Makefile.d/build.mk
parent0264bd2989c282c8ffaa13e1c491aa529789565e (diff)
refactor (again): new download script, separate architectures, modules
Diffstat (limited to 'Makefile.d/build.mk')
-rw-r--r--Makefile.d/build.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile.d/build.mk b/Makefile.d/build.mk
new file mode 100644
index 0000000..478fdc5
--- /dev/null
+++ b/Makefile.d/build.mk
@@ -0,0 +1,17 @@
+define rule_grub_cfg
+tmp/grub_%(keymap)_%(romtype).cfg: \
+ resources/grub/config/extra/common.cfg resources/grub/config/menuentries/common.cfg \
+ resources/grub/config/extra/%(romtype).cfg resources/grub/config/menuentries/%(romtype).cfg ;
+ echo 'keymap %(keymap)' | cat \
+ resources/grub/config/extra/common.cfg \
+ resources/grub/config/extra/%(romtype).cfg \
+ - \
+ resources/grub/config/menuentries/common.cfg \
+ resources/grub/config/menuentries/%(romtype).cfg \
+ > $@
+endef
+$(eval $(call multiglob,grub_cfg,keymap romtype))
+
+# % = $(keymap)_$(romtype)
+tmp/grub_%_test.cfg: tmp/grub_%.cfg
+ sed 's/grubtest.cfg/grub.cfg/' < $< > $@