trivabble/Makefile

30 lines
542 B
Makefile

# -*- Makefile -*-
PORT = 3000
ESLINT?=eslint
ifeq (, $(shell which $(firstword ${ESLINT})))
ESLINT?=npx eslint
endif
.PHONY: all help lang start-dev-server
all: lang
help:
@echo make lang: build the translation files
@echo make eslint: use ESLint to check conformance against the coding style
@echo make start-dev-server: start a development server
public/l10n/js/fr.js: $(wildcard l10n/po/*/*.po)
cd l10n; make
lang: public/l10n/js/fr.js
eslint:
-${ESLINT} **/*.js
start-dev-server: lang
cd server && make start-dev-server