Function: makefile-insert-macro

makefile-insert-macro is an interactive and byte-compiled function defined in make-mode.el.gz.

Signature

(makefile-insert-macro MACRO-NAME)

Documentation

Prepare definition of a new macro named MACRO-NAME.

Interactively, prompt for the name of the macro.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/make-mode.el.gz
(defun makefile-insert-macro (macro-name)
  "Prepare definition of a new macro named MACRO-NAME.
Interactively, prompt for the name of the macro."
  (interactive "sMacro Name: ")
  (makefile-pickup-macros)
  (unless (zerop (length macro-name))
    (beginning-of-line)
    (insert macro-name makefile-macro-assign)
    (setq makefile-need-macro-pickup t)
    (makefile-remember-macro macro-name)))