glowers-radio/Makefile

19 lines
436 B
Makefile
Raw Normal View History

2023-04-26 21:45:52 -04:00
all: build
build: data/songs.json
prod: build validate
2023-04-26 21:45:52 -04:00
# 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
2023-04-26 21:45:52 -04:00
validate:
2023-02-05 09:22:53 -05:00
ajv -s data/schema.yaml -d data/songs.json --strict=false
2023-04-26 21:45:52 -04:00
links:
lib/sh/getlatest.sh $(i)
2023-04-26 21:45:52 -04:00
dbg:
node -e 'console.debug(require("util").inspect(require("./data/songs.js"), { colors: true, depth: Infinity, maxArrayLength: Infinity }))'