This repository was archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (62 loc) · 1.68 KB
/
Makefile
File metadata and controls
71 lines (62 loc) · 1.68 KB
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
OUTDIR ?= "/tmp"
build-local:
./_build/build-local.bash
cache-deps:
deno cache --lock=deps-lock.json --lock-write --import-map=import_map.json deps.ts
deps:
deno cache --lock=deps-lock.json deps.ts
test:
deno test --allow-write --allow-read --allow-net --allow-env --allow-run
build-linux-x86_64: deps
$(eval OUTFILE ?= render-linux-x86_64)
deno compile \
--unstable \
--allow-net \
--allow-read \
--allow-run \
--allow-write \
--allow-env \
--target=x86_64-unknown-linux-gnu \
--output=${OUTDIR}/${OUTFILE} \
./entry-point.ts
build-macos-x86_64: deps
$(eval OUTFILE ?= render-macos-x86_64)
deno compile \
--unstable \
--allow-net \
--allow-read \
--allow-run \
--allow-write \
--allow-env \
--target=x86_64-apple-darwin \
--output=${OUTDIR}/${OUTFILE} \
./entry-point.ts
build-macos-aarch64: deps
$(eval OUTFILE ?= render-macos-aarch64)
deno compile \
--unstable \
--allow-net \
--allow-read \
--allow-run \
--allow-write \
--allow-env \
--target=aarch64-apple-darwin \
--output=${OUTDIR}/${OUTFILE} \
./entry-point.ts
build-windows-x86_64: deps
$(eval OUTFILE ?= render-windows-x86_64)
deno compile \
--unstable \
--allow-net \
--allow-read \
--allow-run \
--allow-write \
--allow-env \
--target=x86_64-pc-windows-msvc \
--output=${OUTDIR}/${OUTFILE} \
./entry-point.ts
build-completions: build-local
mkdir -p ./share/fish/vendor_completions.d ./share/bash/bash_completion.d ./share/zsh/site-functions
./bin/render completions fish > ./share/fish/vendor_completions.d/render.fish
./bin/render completions bash > ./share/bash/bash_completion.d/render.bash
./bin/render completions zsh > ./share/zsh/site-functions/render.zsh