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