2016-11-04 13:16:09 +01:00
|
|
|
emacs ?= emacs
|
|
|
|
|
2016-11-15 23:18:35 +01:00
|
|
|
sheets: colemak.pdf qwerty.pdf
|
|
|
|
|
|
|
|
%.pdf: cheat-sheet.hs %.hs
|
|
|
|
cp $*.hs Layout.hs
|
2016-11-15 21:35:36 +01:00
|
|
|
nix-shell --run "cabal build"
|
2016-11-15 23:18:35 +01:00
|
|
|
nix-shell --run "dist/build/boonCS/boonCS $*"
|
|
|
|
nix-shell latex.nix --run "xelatex $*.tex"
|
|
|
|
nix-shell --run "dist/build/boonCS/boonCS $*"
|
|
|
|
nix-shell latex.nix --run "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
|
|
|
|
|