Org Mode support for `make'
make program is a dependency-tracking build utility that is
distributed with *nix systems. There are several
but they each generally look for a file named
Makefile, which contains rules for building one or more targets.
ob-makefile.el helps the
Org mode user tangle a
source code blocks.
ob-makefile.el is useful only for tangling a
makefile. Hopefully, at some point in the future it will support
Requirements and Setup
make program is a somewhat unusual *nix utility because the
TAB character is an important part of the syntax.
Emacs includes a makefile-mode for editing the
For tangling to work, the variable
be non-nil, so that tabs aren't lost in the Org mode buffer.
(setq org-src-preserve-indentation t)
Currently, there is no need to activate makefile with
org-babel-do-load-languages, but it won't hurt to do so.
(org-babel-do-load-languages 'org-babel-load-languages '((makefile . t)))
Org Mode Features for Makefile Source Code Blocks
There are no language-specific default values or header arguments for
makefile doesn't support sessions.
makefile source code blocks currently don't return results. They
exist solely for tangling.