-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
36 lines (25 loc) · 838 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
assets = .args .init.lua index.lua
wiki = wiki.html
.PHONY: dist clean download update
update: wiki.com zip.com $(assets)
./zip.com wiki.com $(assets)
dist: wiki.com zip.com $(assets) $(wiki)
./zip.com wiki.com $(assets) $(wiki)
wiki.com: redbean.com
cp -p redbean.com wiki.com
redbean.com:
curl https://redbean.dev/redbean-latest.com >redbean.com
chmod u+x redbean.com
zip.com:
curl https://redbean.dev/zip.com >zip.com
chmod u+x zip.com
wiki.html:
curl https://tiddlywiki.com/empty.html >wiki.html
download: redbean.com zip.com wiki.html
curl https://redbean.dev/redbean-latest.com >redbean.com
curl https://tiddlywiki.com/empty.html >wiki.html
curl https://redbean.dev/zip.com >zip.com
clean:
rm wiki.html redbean.com zip.com
reset:
rm redbean.com wiki.com zip.com wiki.html