Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support universal-argument for makefile-executor-execute-target 's compile action #20

Open
eval-exec opened this issue Nov 18, 2023 · 0 comments

Comments

@eval-exec
Copy link

Hello, some makefile target need user input, so it would be nice if makefile-executor-execute-target can support universal-argument like C-u compile.

(defun makefile-executor-execute-target (filename &optional target)
  "Execute a Makefile target from FILENAME.

FILENAME defaults to current buffer."
  (interactive
   (list (file-truename buffer-file-name)))

  (let ((target (or target (makefile-executor-select-target filename))))
    (makefile-executor-store-cache filename target)
    (compile (format "make -f %s -C %s %s"
                     (shell-quote-argument filename)
                     (shell-quote-argument (file-name-directory filename))
                     target))))

The compile may need to accept optional _COMINT argument:

(compile COMMAND &optional _COMINT)
@eval-exec eval-exec changed the title Support universal-argument for makefile-executor-execute-target 's compile Support universal-argument for makefile-executor-execute-target 's compile action Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant