-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
47 lines (36 loc) · 916 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
44
45
46
47
scrbl := index.rkt
www := fear-of-macros
.PHONY: all clean html html-single html-multi
all: html
clean:
rm -rf $(www)
html: html-single html-multi
racket add-to-head.rkt
html-single: $(scrbl)
raco scribble \
--html \
--dest $(www) \
--dest-name all.html \
++style gh.css \
++main-xref-in \
--redirect-main https://docs.racket-lang.org/ \
\
$(scrbl)
html-multi: $(scrbl)
raco scribble \
--htmls \
--dest-name $(www) \
++style gh.css \
++main-xref-in \
--redirect-main https://docs.racket-lang.org/ \
\
$(scrbl)
######################################################################
# S3 bucket deploy
aws := aws --profile greg
dest := s3://www.greghendershott.com/fear-of-macros/
cfid := E2LPR1YW069SHG
.PHONY: deploy
deploy:
$(aws) s3 sync --no-follow-symlinks $(www) $(dest)
$(aws) cloudfront create-invalidation --distribution-id $(cfid) --paths "/fear-of-macros/*"