2015-10-25 20:56:00 -04:00
|
|
|
;;; ob-makefile.el --- Babel Functions for Makefile -*- lexical-binding: t; -*-
|
2012-10-12 14:38:06 -04:00
|
|
|
|
2023-01-01 05:31:12 -05:00
|
|
|
;; Copyright (C) 2009-2023 Free Software Foundation, Inc.
|
2012-10-12 14:38:06 -04:00
|
|
|
|
2014-01-18 03:17:14 -05:00
|
|
|
;; Author: Eric Schulte
|
|
|
|
;; Thomas S. Dye
|
2012-10-12 14:38:06 -04:00
|
|
|
;; Keywords: literate programming, reproducible research
|
2021-09-26 03:44:29 -04:00
|
|
|
;; URL: https://orgmode.org
|
2012-10-12 14:38:06 -04:00
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
2017-09-13 18:52:52 -04:00
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
2012-10-12 14:38:06 -04:00
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
2015-10-25 20:56:00 -04:00
|
|
|
;; This file exists solely for tangling a Makefile from Org files.
|
2012-10-12 14:38:06 -04:00
|
|
|
|
|
|
|
;;; Code:
|
2022-08-04 09:53:05 -04:00
|
|
|
|
|
|
|
(require 'org-macs)
|
|
|
|
(org-assert-version)
|
|
|
|
|
2012-10-12 14:38:06 -04:00
|
|
|
(require 'ob)
|
|
|
|
|
|
|
|
(defvar org-babel-default-header-args:makefile '())
|
|
|
|
|
2015-10-25 20:56:00 -04:00
|
|
|
(defun org-babel-execute:makefile (body _params)
|
2012-10-12 14:38:06 -04:00
|
|
|
"Execute a block of makefile code.
|
|
|
|
This function is called by `org-babel-execute-src-block'."
|
|
|
|
body)
|
|
|
|
|
2015-10-25 20:56:00 -04:00
|
|
|
(defun org-babel-prep-session:makefile (_session _params)
|
2021-09-16 06:32:43 -04:00
|
|
|
"Signal error; Make does not support sessions."
|
2012-10-12 14:38:06 -04:00
|
|
|
(error "Makefile sessions are nonsensical"))
|
|
|
|
|
|
|
|
(provide 'ob-makefile)
|
|
|
|
|
|
|
|
;;; ob-makefile.el ends here
|