-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
98 lines (70 loc) · 1.61 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
ifneq (,$(wildcard ./.env))
include .env
export
endif
.Phony: serve build test webmention send dev-webmention win prod-serve
.PHONY: meilikey
meilikey:
./scripts/get_search_api_key.sh
serve:
./bin/zola serve -p 8000 --drafts
prod-serve:
./bin/zola serve -p 8000
build:
./bin/zola build
.Phony: buildbook
buildbook:
deno run -A ./book/build.ts
.Phony: servebook
servebook:
deno run -A ./book/build.ts --serve
.Phony: installbook
installbook:
./scripts/install_mdbook-epub.sh
test:
deno test
webmention:
deno run -A https://deno.land/x/denoflow/cli.ts run
send:
deno run -A https://deno.land/x/denoflow/cli.ts run send-webmention.yml
dev-webmention:
deno run -A ../denoflow/denoflow/cli.ts run --force
.Phony: install
install:
./scripts/install_zola.sh
.Phony: daily
daily:
./scripts/daily.sh
.Phony: random
random:
./scripts/random.sh $(name)
.Phony: book
book:
./scripts/book.sh $(name)
.Phony: notes
notes:
./scripts/notes.sh $(name)
.Phony: tt
tt:
echo tt "${NVIM}"
.Phony: prod-upload
prod-upload:
make prod-zipdb && aws s3 cp ./prod-db.zip s3://blog/prod-db.zip --endpoint-url $(AWS_ENDPOINT)
.Phony: prod-load
prod-load:
aws s3 cp s3://blog/prod-db.zip ./prod-db.zip --endpoint-url $(AWS_ENDPOINT) && make prod-unzipdb
.Phony: prod-zipdb
prod-zipdb:
zip -r -q -FS prod-db.zip ./data ./webmentions -x "*/.*"
.Phony: prod-unzipdb
prod-unzipdb:
unzip -q -o prod-db.zip
.Phony: tag
tag:
git tag -a v$(v) -m "tag v$(v)" && git push
.PHONY: task
task:
deno run -A --watch ./scripts/serve.ts ./scripts/serve.ts
.PHONY: cronserve
cronserve:
deno run --watch -A ./scripts/cronbin/serve.js