Function: projectile-tasks-from-make

projectile-tasks-from-make is a byte-compiled function defined in projectile.el.

Signature

(projectile-tasks-from-make PROJECT-ROOT)

Documentation

Return the targets of the Makefile in PROJECT-ROOT as tasks.

Only plain named targets are offered - pattern rules, file targets and the special dot-targets aren't things you'd run by hand.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-tasks-from-make (project-root)
  "Return the targets of the Makefile in PROJECT-ROOT as tasks.
Only plain named targets are offered - pattern rules, file targets and
the special dot-targets aren't things you'd run by hand."
  (when-let* ((file (projectile--first-task-file
                     project-root projectile--makefile-names)))
    (projectile--tasks-named
     (projectile--matches-in-file
      file "^\\([a-zA-Z0-9][a-zA-Z0-9_-]*\\)[ \t]*:\\(?:[^=\n]\\|$\\)")
     "make" "make %s")))