Variable: makefile-macroassign-regex

makefile-macroassign-regex is a variable defined in make-mode.el.gz.

Value

"\\(?:^\\|^export\\|^override\\|:\\|:[  ]*override\\)[  ]*\\([^ \n	][^:#=  \n]*\\)[        ]*\\(?:!=\\|[*:+]?[:?]?=\\)"

Documentation

Regex used to find macro assignment lines in a makefile.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/make-mode.el.gz
;; Note that the first and second subexpression is used by font lock.  Note
;; that if you change this regexp you might have to fix the imenu index in
;; makefile-imenu-generic-expression.
(defconst makefile-macroassign-regex
  ;; We used to match not just the varname but also the whole value
  ;; (spanning potentially several lines).
  ;; "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.*\\\\\n\\)*.*\\)\\)"
  ;; What about the define statement?  What about differentiating this for makepp?
  "\\(?:^\\|^export\\|^override\\|:\\|:[ \t]*override\\)[ \t]*\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=\\|[*:+]?[:?]?=\\)"
  "Regex used to find macro assignment lines in a makefile.")