More tweaks of skeleton documentation wrt \n behavior at bol/eol.
[bpt/emacs.git] / lisp / org / ob-makefile.el
CommitLineData
271672fa
BG
1;;; ob-makefile.el --- org-babel functions for makefile evaluation
2
ba318903 3;; Copyright (C) 2009-2014 Free Software Foundation, Inc.
271672fa 4
812a0930
GM
5;; Author: Eric Schulte
6;; Thomas S. Dye
271672fa
BG
7;; Keywords: literate programming, reproducible research
8;; Homepage: http://orgmode.org
9
10;; This file is part of GNU Emacs.
11
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.
16
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.
21
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/>.
24
25;;; Commentary:
26
27;; This file exists solely for tangling a Makefile from org-mode files.
28
29;;; Code:
30(require 'ob)
31
32(defvar org-babel-default-header-args:makefile '())
33
34(defun org-babel-execute:makefile (body params)
35 "Execute a block of makefile code.
36This function is called by `org-babel-execute-src-block'."
37 body)
38
39(defun org-babel-prep-session:makefile (session params)
40 "Return an error if the :session header argument is set. Make
41does not support sessions."
42 (error "Makefile sessions are nonsensical"))
43
44(provide 'ob-makefile)
45
46
47
48;;; ob-makefile.el ends here