mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
refactor(cli): doom make: accept functions in make targets
A little less magical (and more performant) than interpolation.
This commit is contained in:
@@ -34,8 +34,10 @@
|
||||
(if (null rule)
|
||||
(print! (warn "No known make rule for: %s" name))
|
||||
(dolist (entry rule)
|
||||
(when (stringp entry)
|
||||
(insert entry "\n")))
|
||||
(cond ((stringp entry)
|
||||
(insert entry "\n"))
|
||||
((functionp entry)
|
||||
(funcall entry rc))))
|
||||
(if (null outfile)
|
||||
(print! "%s" (buffer-string))
|
||||
(print! (start "Wrote %s") name)
|
||||
|
Reference in New Issue
Block a user