build-cmd: add support for function symbols
This commit is contained in:
parent
7236d623e5
commit
114afeb568
1 changed files with 4 additions and 2 deletions
|
@ -22,8 +22,10 @@ If ARG is nil this function calls `recompile', otherwise it calls
|
||||||
(let ((build-file (cdr narf--build-command))
|
(let ((build-file (cdr narf--build-command))
|
||||||
(build-cmd (car narf--build-command)))
|
(build-cmd (car narf--build-command)))
|
||||||
(if (or (null build-file) (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 ""))))
|
(if (symbolp build-cmd)
|
||||||
(error "Could not find Makefile"))))
|
(call-interactively build-cmd)
|
||||||
|
(compile (format "cd '%s' && %s" (narf/project-root) (format build-cmd (or arg "")))))
|
||||||
|
(error "Could not build!"))))
|
||||||
|
|
||||||
;;;; Code running ;;;;;;;;;;;;;;;;;;;;;;
|
;;;; Code running ;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;###autoload (autoload 'narf:eval-buffer "defuns-quickrun" nil t)
|
;;;###autoload (autoload 'narf:eval-buffer "defuns-quickrun" nil t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue