mirror of https://github.com/Chizi123/.emacs.d.git

Chizi123
2018-11-18 76bbd07de7add0f9d13c6914f158d19630fe2f62
commit | author | age
76bbd0 1 ;;; ob-makefile.el --- Babel Functions for Makefile  -*- lexical-binding: t; -*-
C 2
3 ;; Copyright (C) 2009-2018 Free Software Foundation, Inc.
4
5 ;; Author: Eric Schulte
6 ;;        Thomas S. Dye
7 ;; Keywords: literate programming, reproducible research
8 ;; Homepage: https://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 <https://www.gnu.org/licenses/>.
24
25 ;;; Commentary:
26
27 ;; This file exists solely for tangling a Makefile from Org 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.
36 This 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
41 does not support sessions."
42   (error "Makefile sessions are nonsensical"))
43
44 (provide 'ob-makefile)
45
46
47
48 ;;; ob-makefile.el ends here