blob: 2d993f194139fbb32deb053f8f6b1fb20b6de5ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
ORG_IN := $(shell find site/ -name "*.org")
ORG_OUT := $(ORG_IN:.org=.html)
org-prebuild : .emacs
org-build : ${ORG_OUT}
soupault-build : org-build
ARTIFACTS += ${ORG_OUT} .emacs.d/cache
CONFIGURE += .emacs
.emacs : scripts/packages.el
@scripts/pretty-echo.sh echo Initiating "Emacs configuration"
@${EMACS}
@touch .emacs
site/index.org : site/haskell.org site/miscellaneous.org site/meta.org site/coq.org
%.html : %.org scripts/packages.el scripts/export-org.el .emacs org.mk
@scripts/pretty-echo.sh Exporting "$*.org"
@${EMACS} $< --load="$(shell pwd)/scripts/export-org.el"
|