Skip to content

Commit c55c193

Browse files
committed
☕ Add tools and dlink commands
1 parent 6f32b75 commit c55c193

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
TOOLS := ${CURDIR}/.tools
2+
13
.DEFAULT_GOAL := help
24

35
help:
46
@cat $(MAKEFILE_LIST) | \
57
perl -ne 'print if /^\w+.*##/;' | \
68
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
79

10+
tools: FORCE ## Install development tools
11+
@mkdir -p ${TOOLS}
12+
@deno install -f --allow-write --allow-read --allow-net --root ${TOOLS} https://deno.land/x/dlink/dlink.ts
13+
814
fmt: FORCE ## Format code
915
@deno fmt
1016

@@ -20,4 +26,8 @@ type-check: FORCE ## Type check
2026
test: FORCE ## Test
2127
@deno test --unstable -A
2228

29+
dlink: FORCE ## Update dlink
30+
@${TOOLS}/bin/dlink
31+
@make fmt
32+
2333
FORCE:

0 commit comments

Comments
 (0)