-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 1.26 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
default : setup
-include local.mk
install :
raco pkg install --name ractionary
setup :
raco setup ractionary
check-pkg-deps :
raco setup --check-pkg-deps ractionary
all : plain-dict elisp-dict elisp-dict-help url-table
plain-dict :
./ractionary-make-dict.rkt --dictionary --output racket-mode
elisp-dict :
./ractionary-make-dict.rkt --dictionary --output ractionary-words.el --elisp
emacs -Q -L . -batch -f batch-byte-compile ractionary-words.el
elisp-dict-help :
./ractionary-make-dict.rkt --dictionary --output ractionary-words-help.el --elisp-hover
emacs -Q -L . -batch -f batch-byte-compile ractionary-words-help.el
url-table :
./ractionary-make-urls.rkt --url-table --output ractionary-urls.el
emacs -Q -L . -batch -f batch-byte-compile ractionary-urls.el
clean :
-rm *.elc
find -name compiled -type d -print0 | xargs -0 --no-run-if-empty rm -r
doc : html-doc
# nicer, but not supported for a GitHub README
html-doc :
mkdir -p web/examples web/emacs
scribble ++main-xref-in --redirect-main http://docs.racket-lang.org/ --html --dest web --dest-name web/index.html ractionary.scrbl
rsync -av --delete --include='*.el' --include='*/' --exclude='*' examples/ web/examples/
rsync -av --delete --include='*.el' --include='*/' --exclude='*' emacs/ web/emacs/