From 3d9f04a0839be72c476ff328d3bfde2f518d3958 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 27 Apr 2023 02:45:52 +0100 Subject: [PATCH] Makefile: update makefile --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 83f74c1..000f0bb 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,18 @@ -all: | build -prod: | build validate +all: build +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 + validate: ajv -s data/schema.yaml -d data/songs.json --strict=false + links: lib/sh/getlatest.sh $(i) + dbg: node -e 'console.debug(require("util").inspect(require("./data/songs.js"), { colors: true, depth: Infinity, maxArrayLength: Infinity }))'