ob-makefile.el 1.5 KB

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