Skip to content

Commit 5ef1364

Browse files
committed
Refine Makefile
1 parent e9a0ba3 commit 5ef1364

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Makefile

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TOOLS := ${CURDIR}/.tools
1+
TARGETS := $$(find . -name '*.ts' -or -name '*.md')
22

33
.DEFAULT_GOAL := help
44

@@ -7,27 +7,23 @@ help:
77
perl -ne 'print if /^\w+.*##/;' | \
88
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
99

10-
tools: FORCE ## Install development tools
11-
@mkdir -p ${TOOLS}
12-
@deno install -A -f -n udd --root ${TOOLS} https://deno.land/x/[email protected]/main.ts
13-
1410
fmt: FORCE ## Format code
15-
@deno fmt --ignore=.deno
11+
@deno fmt
1612

1713
fmt-check: FORCE ## Format check
18-
@deno fmt --check --ignore=.deno
14+
@deno fmt --check
1915

2016
lint: FORCE ## Lint code
21-
@deno lint --ignore=.deno
17+
@deno lint
2218

2319
type-check: FORCE ## Type check
24-
@deno test --unstable --no-run $$(find . -name '*.ts' -not -name '.deno')
20+
@deno test --no-run ${TARGETS}
2521

2622
test: FORCE ## Test
27-
@deno test --no-check --unstable -A --jobs
23+
@deno test -A --no-check
2824

29-
update: FORCE ## Update dependencies
30-
@${TOOLS}/bin/udd $$(find . -name '*.ts' -not -name '.deno')
25+
deps: FORCE ## Update dependencies
26+
@deno run -A https://deno.land/x/[email protected]/main.ts ${TARGETS}
3127
@make fmt
3228

3329
FORCE:

0 commit comments

Comments
 (0)