summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 75a54622e64c63904935de7cd38e94d4b54cb9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ROOT := $(shell pwd)
CLEODIR := site/posts/meta
EMACS := ROOT="${ROOT}" emacs

GENFILES := scripts/tangle-org.el bootstrap.mk

default:
	@make build

include bootstrap.mk

Makefile bootstrap.mk scripts/tangle-org.el \
  &: ${CLEODIR}/Bootstrap.org
	@echo "  tangle  $<"
	@${EMACS} $< --batch \
	   --eval "(require 'org)" \
	   --eval "(cd (getenv \"ROOT\"))" \
	   --eval "(setq org-src-preserve-indentation t)" \
           --eval "(org-babel-do-load-languages 'org-babel-load-languages'((shell . t)))" \
           --eval "(setq org-confirm-babel-evaluate nil)" \
	   --eval "(org-babel-tangle)"