MAKEFLAGS+=-j 2

YATE=$(shell find . -type f | fgrep -v 'develop' | egrep '.yate$$')

all: built/header.yate.js loc

node_modules: package.json
	npm i
	touch node_modules

built/header.yate.js: $(YATE)
	npm run-script build

loc: l11n.sh
	./l11n.sh
	touch loc

build:
	mkdir -p built
	borschik -t yate -to '{"node": true}' --minimize=false -i ./header/header.yate -o ./built/header.yate.js

.PHONY: build
