mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
narf:build -- run even if (null build-file)
This commit is contained in:
@ -21,7 +21,7 @@ If ARG is nil this function calls `recompile', otherwise it calls
|
||||
(user-error "No build command was set"))
|
||||
(let ((build-file (cdr narf--build-command))
|
||||
(build-cmd (car narf--build-command)))
|
||||
(if (narf/project-has-files build-file)
|
||||
(if (or (null build-file) (narf/project-has-files build-file))
|
||||
(compile (format "cd '%s' && %s" (narf/project-root) (format build-cmd (or arg ""))))
|
||||
(error "Could not find Makefile"))))
|
||||
|
||||
|
Reference in New Issue
Block a user