"Dr. Arne Babenhauserheide" wrote: >>> In the case you will stick with Org, there at least should be a runnable build recipe (i. e. a Makefile). > > I’d like to cut this discussion short: > > https://notabug.org/ZelphirKaltstahl/awesome-guile/pulls/1/files > all: readme.md readme.texi readme.html > .INTERMEDIATE: .exported > readme.md readme.texi readme.html: .exported > .exported: readme.org > HOME=$$(dirname $$(realpath "$<")) emacs -Q --batch "$<" --exec "(require 'ox-md)" -f org-md-export-to-markdown -f org-html-export-to-html -f org-texinfo-export-to-texinfo -f kill-emacs Alternatively, without reliance on implicit behaviour (setting HOME in order to get an expected filename??): #!/usr/bin/make -f SHELL := emacs .SHELLFLAGS := --quick --batch --eval orgs := $(wildcard *.org) objs := $(orgs:.org=.md) $(orgs:.org=.texi) .PHONY: all all: $(objs) .ONESHELL: %.md %.texi: %.org (with-temp-buffer (require 'ox-md) (require 'ox-texinfo) (when (insert-file-contents "$<") (org-mode) (org-export-to-file 'md "$*.md") (org-export-to-file 'texinfo "$*.texi")))