2019-08-25 22:37:45 +02:00
|
|
|
all: sheets
|
|
|
|
|
2016-11-04 13:16:09 +01:00
|
|
|
emacs ?= emacs
|
|
|
|
|
2019-08-25 22:05:02 +02:00
|
|
|
sheets: colemak.pdf qwerty.pdf qwertz.pdf workman.pdf
|
2016-11-15 23:18:35 +01:00
|
|
|
|
|
|
|
%.pdf: cheat-sheet.hs %.hs
|
|
|
|
cp $*.hs Layout.hs
|
2019-08-25 22:05:02 +02:00
|
|
|
cabal new-build
|
|
|
|
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
|
2016-11-04 13:16:09 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
$(emacs) -batch --script boon-test.el
|
|
|
|
|
2016-11-15 23:18:35 +01:00
|
|
|
BOON_ENV = -batch \
|
2016-11-13 14:45:10 +01:00
|
|
|
--eval "(add-to-list 'load-path (expand-file-name \".\"))" \
|
|
|
|
--eval "(package-initialize)" \
|
2016-11-15 23:18:35 +01:00
|
|
|
|
|
|
|
%.hs: boon-tutorial.el boon-%.el boon-keys.el
|
|
|
|
$(emacs) $(BOON_ENV) -l boon-tutorial.el \
|
|
|
|
--eval "(boon-dump-cheatsheet \"$*\")"
|
2016-11-13 14:45:10 +01:00
|
|
|
|
2016-11-04 13:16:09 +01:00
|
|
|
clean:
|
|
|
|
rm -f *.elc
|
|
|
|
|
|
|
|
.PHONY: all clean test
|
|
|
|
|