Revert "ob-tangle.el (org-babel-spec-to-string): Don't use `org-babel-trim"
[org-mode.git] / lisp / ob-makefile.el
blobaf7e66e5121bfa9aaa5426ddc691b0d5ff62fd55
1 ;;; ob-makefile.el --- org-babel functions for makefile evaluation
3 ;; Copyright (C) 2009-2014 Free Software Foundation, Inc.
5 ;; Author: Eric Schulte
6 ;; Thomas S. Dye
7 ;; Keywords: literate programming, reproducible research
8 ;; Homepage: http://orgmode.org
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25 ;;; Commentary:
27 ;; This file exists solely for tangling a Makefile from org-mode files.
29 ;;; Code:
30 (require 'ob)
32 (defvar org-babel-default-header-args:makefile '())
34 (defun org-babel-execute:makefile (body params)
35 "Execute a block of makefile code.
36 This function is called by `org-babel-execute-src-block'."
37 body)
39 (defun org-babel-prep-session:makefile (session params)
40 "Return an error if the :session header argument is set. Make
41 does not support sessions."
42 (error "Makefile sessions are nonsensical"))
44 (provide 'ob-makefile)
48 ;;; ob-makefile.el ends here