forked from vim-skk/skkeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 837 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
TOOLS := ${CURDIR}/.tools
.DEFAULT_GOAL := help
help:
@cat $(MAKEFILE_LIST) | \
perl -ne 'print if /^\w+.*##/;' | \
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
tools: FORCE ## Install development tools
@mkdir -p ${TOOLS}
@deno install -A -f -n udd --root ${TOOLS} https://deno.land/x/[email protected]/main.ts
fmt: FORCE ## Format code
@deno fmt --ignore=.deno
fmt-check: FORCE ## Format check
@deno fmt --check --ignore=.deno
lint: FORCE ## Lint code
@deno lint --ignore=.deno
type-check: FORCE ## Type check
@deno test --unstable --no-run $$(find . -name '*.ts' -not -name '.deno')
test: FORCE ## Test
# Denoのバグへの暫定的対処
@deno test --unstable -A ; deno test --unstable -A
update: FORCE ## Update dependencies
@${TOOLS}/bin/udd $$(find . -name '*.ts' -not -name '.deno')
@make fmt
FORCE: