anki/qt/ts/Makefile
evandrocoan 5c0dfa69a4 Fix error reading scss;..\aqt_data\web: no such file or directory
Recently on my Windows, out of nowhere, it started throwing:
```
../../ts/node_modules/.bin/tsc --build
../../ts/node_modules/.bin/sass --no-source-map scss:..\\aqt_data\\web
Error reading scss;..\aqt_data\web: no such file or directory.
make: *** [Makefile:26: build] Error 66
```
2020-08-20 22:22:33 -03:00

36 lines
519 B
Makefile

SHELL := /bin/bash
ifndef SHELLFLAGS
SHELLFLAGS :=
endif
.SHELLFLAGS := -eu -o pipefail ${SHELLFLAGS} -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
ifndef OS
OS := unknown
endif
.DELETE_ON_ERROR:
.SUFFIXES:
BIN := ../../ts/node_modules/.bin
PHONY: all
all: check
PHONY: build
build:
$(BIN)/tsc --build
$(BIN)/sass --no-source-map scss:css
rsync -a css/ ../aqt_data/web/
.PHONY: check
check:
$(BIN)/prettier --check src/*.ts
.PHONY: fix
fix:
$(BIN)/prettier --write src/*.ts