forked from jyp/boon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 763 Bytes
/
Makefile
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
all: sheets
emacs ?= emacs
sheets: colemak.pdf qwerty.pdf qwertz.pdf workman.pdf
compiled:: cheat-sheet.hs Mcolemak.hs Mqwerty.hs Mqwertz.hs Mworkman.hs
cabal new-build
%.pdf: compiled
nix-shell --run "cabal new-exec boonCS $*" # generate the size of boxes
xelatex $*.tex
nix-shell --run "cabal new-exec boonCS $*" # generate the diagrams according to the above sizes
xelatex $*.tex
test:
$(emacs) -batch --script boon-test.el
BOON_ENV = -batch \
--eval "(add-to-list 'load-path (expand-file-name \".\"))" \
--eval "(package-initialize)" \
M%.hs: boon-tutorial.el boon-%.el boon-keys.el
$(emacs) -q $(BOON_ENV) -l boon-tutorial.el \
--eval "(boon-dump-cheatsheet \"$*\")"
clean:
rm -f *.elc
.PHONY: all clean test