mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add tools/make module
This commit is contained in:
14
modules/tools/make/autoload.el
Normal file
14
modules/tools/make/autoload.el
Normal file
@ -0,0 +1,14 @@
|
||||
;;; tools/make/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +make/run ()
|
||||
"Run a make task in the current project."
|
||||
(interactive)
|
||||
(require 'makefile-executor)
|
||||
(let* ((buffer-file (or buffer-file-name default-directory))
|
||||
(makefile-dir (locate-dominating-file buffer-file "Makefile")))
|
||||
(unless makefile-dir
|
||||
(user-error "No makefile found in this project."))
|
||||
(let ((default-directory makefile-dir))
|
||||
(makefile-executor-execute-target
|
||||
(expand-file-name "Makefile")))))
|
4
modules/tools/make/packages.el
Normal file
4
modules/tools/make/packages.el
Normal file
@ -0,0 +1,4 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; tools/make/packages.el
|
||||
|
||||
(package! makefile-executor)
|
Reference in New Issue
Block a user