ob-makefile.el 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ;;; ob-makefile.el --- Babel Functions for Makefile -*- lexical-binding: t; -*-
  2. ;; Copyright (C) 2009-2022 Free Software Foundation, Inc.
  3. ;; Author: Eric Schulte
  4. ;; Thomas S. Dye
  5. ;; Keywords: literate programming, reproducible research
  6. ;; URL: https://orgmode.org
  7. ;; This file is part of GNU Emacs.
  8. ;; GNU Emacs is free software: you can redistribute it and/or modify
  9. ;; it under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation, either version 3 of the License, or
  11. ;; (at your option) any later version.
  12. ;; GNU Emacs is distributed in the hope that it will be useful,
  13. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;; GNU General Public License for more details.
  16. ;; You should have received a copy of the GNU General Public License
  17. ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
  18. ;;; Commentary:
  19. ;; This file exists solely for tangling a Makefile from Org files.
  20. ;;; Code:
  21. (require 'org-macs)
  22. (org-assert-version)
  23. (require 'ob)
  24. (defvar org-babel-default-header-args:makefile '())
  25. (defun org-babel-execute:makefile (body _params)
  26. "Execute a block of makefile code.
  27. This function is called by `org-babel-execute-src-block'."
  28. body)
  29. (defun org-babel-prep-session:makefile (_session _params)
  30. "Signal error; Make does not support sessions."
  31. (error "Makefile sessions are nonsensical"))
  32. (provide 'ob-makefile)
  33. ;;; ob-makefile.el ends here