-
Notifications
You must be signed in to change notification settings - Fork 200
/
Copy pathMakefile
79 lines (69 loc) · 2.27 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.PHONY: watch all clean
HTML_FILES=
HTML_FILES+= recipes.html
HTML_FILES+= architecture.html
HTML_FILES+= scripts.html
HTML_FILES+= your-first-project.html
HTML_FILES+= installation.html
HTML_FILES+= index.html
HTML_FILES+= database.html
HTML_FILES+= debugging.html
HTML_FILES+= testing.html
HTML_FILES+= querybuilder.html
HTML_FILES+= view.html
HTML_FILES+= form.html
HTML_FILES+= hsx.html
HTML_FILES+= htmx-and-hyperscript.html
HTML_FILES+= validation.html
HTML_FILES+= session.html
HTML_FILES+= naming-conventions.html
HTML_FILES+= controller.html
HTML_FILES+= routing.html
HTML_FILES+= authentication.html
HTML_FILES+= authorization.html
HTML_FILES+= relationships.html
HTML_FILES+= updating.html
HTML_FILES+= package-management.html
HTML_FILES+= editors.html
HTML_FILES+= deployment.html
HTML_FILES+= auto-refresh.html
HTML_FILES+= mail.html
HTML_FILES+= design-goals.html
HTML_FILES+= troubleshooting.html
HTML_FILES+= modal.html
HTML_FILES+= database-migrations.html
HTML_FILES+= tailwindcss.html
HTML_FILES+= npm.html
HTML_FILES+= elm.html
HTML_FILES+= jobs.html
HTML_FILES+= logging.html
HTML_FILES+= purescript.html
HTML_FILES+= websockets.html
HTML_FILES+= helpful-tips.html
HTML_FILES+= assets.html
HTML_FILES+= file-storage.html
HTML_FILES+= server-side-components.html
HTML_FILES+= oauth.html
HTML_FILES+= ihp-pro.html
HTML_FILES+= examples.html
HTML_FILES+= stripe.html
HTML_FILES+= realtime-spas.html
HTML_FILES+= config.html
HTML_FILES+= seo.html
all: $(HTML_FILES) bootstrap.css instantclick.js search.js search.css
%.html: %.markdown layout.html
mmark -i $< -o $@ --template layout.html --ext-skylighting --ext-ghc-highlighter --ext-punctuation --ext-toc 2-6
clean:
rm $(HTML_FILES)
bootstrap.css:
curl https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css --output $@
instantclick.js:
curl http://instantclick.io/v3.1.0/instantclick.min.js --output $@
search/node_modules:
cd search && npm install
search.js: search/node_modules
./search/node_modules/.bin/esbuild search/search.jsx --bundle --minify-whitespace --outfile=search.js
search.css: search/node_modules
./search/node_modules/.bin/esbuild search/node_modules/@docsearch/css/dist/style.css --minify-whitespace --outfile=search.css
guide.tar.gz: all
tar -czvf guide.tar.gz *.html *.css *.js images/* images/*/*