config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

ob-makefile.el (1538B)


      1 ;;; ob-makefile.el --- Babel Functions for Makefile  -*- lexical-binding: t; -*-
      2 
      3 ;; Copyright (C) 2009-2024 Free Software Foundation, Inc.
      4 
      5 ;; Author: Eric Schulte
      6 ;; 	   Thomas S. Dye
      7 ;; Keywords: literate programming, reproducible research
      8 ;; URL: 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 
     31 (require 'org-macs)
     32 (org-assert-version)
     33 
     34 (require 'ob)
     35 
     36 (defvar org-babel-default-header-args:makefile '())
     37 
     38 (defun org-babel-execute:makefile (body _params)
     39   "Execute makefile BODY.
     40 Second function argument is ignored.
     41 This function is called by `org-babel-execute-src-block'."
     42   body)
     43 
     44 (defun org-babel-prep-session:makefile (_session _params)
     45   "Signal error; Make does not support sessions."
     46   (error "Makefile sessions are nonsensical"))
     47 
     48 (provide 'ob-makefile)
     49 
     50 ;;; ob-makefile.el ends here