Variable: makefile-query-one-target-method-function

makefile-query-one-target-method-function is a customizable variable defined in make-mode.el.gz.

Value

makefile-query-by-make-minus-q

Documentation

Function to call to determine whether a make target is up to date.

The function must satisfy this calling convention:

* As its first argument, it must accept the name of the target to
  be checked, as a string.

* As its second argument, it may accept the name of a makefile
  as a string. Depending on what you're going to do you may
  not need this.

* It must return the integer value 0 (zero) if the given target
  should be considered up-to-date in the context of the given
  makefile, any nonzero integer value otherwise.

Probably introduced at or before Emacs version 22.1.

Aliases

makefile-query-one-target-method (obsolete since 29.1)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/make-mode.el.gz
(defcustom makefile-query-one-target-method-function
  #'makefile-query-by-make-minus-q
  "Function to call to determine whether a make target is up to date.
The function must satisfy this calling convention:

* As its first argument, it must accept the name of the target to
  be checked, as a string.

* As its second argument, it may accept the name of a makefile
  as a string.  Depending on what you're going to do you may
  not need this.

* It must return the integer value 0 (zero) if the given target
  should be considered up-to-date in the context of the given
  makefile, any nonzero integer value otherwise."
  :type 'function)