Function: vhdl-make
vhdl-make is an interactive and byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-make &optional TARGET)
Documentation
Call make command for compilation of all updated source files (requires
Makefile). Optional argument TARGET allows you to compile the design
specified by a target.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-make (&optional target)
"Call make command for compilation of all updated source files (requires
`Makefile'). Optional argument TARGET allows you to compile the design
specified by a target."
(interactive)
(setq vhdl-make-target
(or target (read-from-minibuffer "Target: " vhdl-make-target
vhdl-minibuffer-local-map)))
(vhdl-compile-init)
(let* ((project (vhdl-aget vhdl-project-alist vhdl-project))
(compiler (or (vhdl-aget vhdl-compiler-alist vhdl-compiler)
(error "ERROR: No such compiler: \"%s\"" vhdl-compiler)))
(command (nth 2 compiler))
(options (vhdl-get-make-options project compiler))
(default-directory (vhdl-compile-directory)))
(unless (file-directory-p default-directory)
(error "ERROR: Compile directory does not exist: \"%s\"" default-directory))
;; run make
(compile (concat (if (equal command "") "make" command)
" " options " " vhdl-make-target))))