blob: 2682086b4438ffcc50c3d26845fc950f5a670168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
ROOT := $(shell pwd)
CLEODIR := site/cleopatra
ARTIFACTS := build.log
CONFIGURE :=
EMACSBIN := emacs
EMACS := ROOT="${ROOT}" ${EMACSBIN}
TANGLE := --batch \
--load="${ROOT}/scripts/tangle-org.el" \
2>> build.log
define emacs-tangle =
echo " tangle $<"
${EMACS} $< ${TANGLE}
endef
default : postbuild ignore
init :
@rm -f build.log
prebuild : init
build : prebuild
postbuild : build
.PHONY : init prebuild build postbuild ignore
include bootstrap.mk
prebuild : bootstrap-prebuild
build : bootstrap-build
postbuild : bootstrap-postbuild
bootstrap-prebuild : bootstrap.mk scripts/update-gitignore.sh
bootstrap-build : bootstrap-prebuild
bootstrap-postbuild : bootstrap-build
bootstrap.mk scripts/update-gitignore.sh &:\
${CLEODIR}/Bootstrap.org
@$(emacs-tangle)
CONFIGURE += bootstrap.mk scripts/update-gitignore.sh
.PHONY : bootstrap-prebuild \
bootstrap-build \
bootstrap-postbuild
|