mirror of
https://github.com/vale981/boon
synced 2025-03-04 09:01:39 -05:00
30 lines
717 B
Makefile
30 lines
717 B
Makefile
all: sheets
|
|
|
|
emacs ?= emacs
|
|
|
|
sheets: colemak.pdf qwerty.pdf qwertz.pdf workman.pdf
|
|
|
|
%.pdf: cheat-sheet.hs %.hs
|
|
cp $*.hs Layout.hs
|
|
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
|
|
|
|
test:
|
|
$(emacs) -batch --script boon-test.el
|
|
|
|
BOON_ENV = -batch \
|
|
--eval "(add-to-list 'load-path (expand-file-name \".\"))" \
|
|
--eval "(package-initialize)" \
|
|
|
|
%.hs: boon-tutorial.el boon-%.el boon-keys.el
|
|
$(emacs) $(BOON_ENV) -l boon-tutorial.el \
|
|
--eval "(boon-dump-cheatsheet \"$*\")"
|
|
|
|
clean:
|
|
rm -f *.elc
|
|
|
|
.PHONY: all clean test
|
|
|