Makefile: update makefile
This commit is contained in:
parent
fa62359e34
commit
3d9f04a083
13
Makefile
13
Makefile
@ -1,11 +1,18 @@
|
|||||||
all: | build
|
all: build
|
||||||
prod: | build validate
|
build: data/songs.json
|
||||||
|
prod: build validate
|
||||||
|
|
||||||
build:
|
# TODO: Move to dist/
|
||||||
|
|
||||||
|
lib_js = $(shell find lib -name '*.js' -type f)
|
||||||
|
data/songs.json: data/songs.js $(lib_js)
|
||||||
node lib/build.js
|
node lib/build.js
|
||||||
|
|
||||||
validate:
|
validate:
|
||||||
ajv -s data/schema.yaml -d data/songs.json --strict=false
|
ajv -s data/schema.yaml -d data/songs.json --strict=false
|
||||||
|
|
||||||
links:
|
links:
|
||||||
lib/sh/getlatest.sh $(i)
|
lib/sh/getlatest.sh $(i)
|
||||||
|
|
||||||
dbg:
|
dbg:
|
||||||
node -e 'console.debug(require("util").inspect(require("./data/songs.js"), { colors: true, depth: Infinity, maxArrayLength: Infinity }))'
|
node -e 'console.debug(require("util").inspect(require("./data/songs.js"), { colors: true, depth: Infinity, maxArrayLength: Infinity }))'
|
||||||
|
Loading…
Reference in New Issue
Block a user