-
Notifications
You must be signed in to change notification settings - Fork 53
/
Makefile
43 lines (36 loc) · 801 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
31
32
33
34
35
36
37
38
39
40
41
42
43
SCRBL=index.scrbl
ASSETS=assets
HL_CSS=$(ASSETS)/highlight/github.css
CUST_CSS=$(ASSETS)/custom.css
HL_JS=$(ASSETS)/highlight/highlight.pack.js
ADD_HEAD=bin/add-to-head.rkt
.PHONY: local clean html html-single html-multi publish
local: html
html: html-multi
racket $(ADD_HEAD)
html-single: $(SCRBL)
raco scribble \
--html \
--dest html \
--dest-name all.html \
++style $(HL_CSS) \
++extra $(HL_JS) \
++style $(CUST_CSS) \
++main-xref-in \
--redirect-main http://docs.racket-lang.org/ \
\
$(SCRBL)
html-multi: $(SCRBL)
raco scribble \
--htmls \
--dest-name html \
++style $(HL_CSS) \
++extra $(HL_JS) \
++style $(CUST_CSS) \
++main-xref-in \
--redirect-main http://docs.racket-lang.org/ \
\
$(SCRBL)
deploy:
cd html; make; cd ../..
publish: html deploy