Fix inconsistencies in `org-occur' binding
[org-mode.git] / lisp / ob-makefile.el
blob69c6e5166e2cd27051fe669a41b4029302134aa1
1 ;;; ob-makefile.el --- Babel Functions for Makefile -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2009-2016 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 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