anki/tslib/Makefile
2020-01-06 13:10:15 +10:00

26 lines
420 B
Makefile

SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.SUFFIXES:
$(shell mkdir -p .build dist)
all: build
.build/deps: package.json
npm i
@touch $@
build: .build/deps dist/backend_pb.js
npm run build
dist/backend_pb.js: .build/deps ../proto/backend.proto
npm run proto
.PHONY: check
check:
npm run lint
npm run check-pretty