From 4e109e806c3c177f10b842865a21e689c0f5a10d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 30 Sep 2024 19:13:48 +0200 Subject: recipe generation with javascript for portability to nodejs which we use for flatpak --- data/makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'data/makefile') diff --git a/data/makefile b/data/makefile index af215a6c..a13f9095 100644 --- a/data/makefile +++ b/data/makefile @@ -13,11 +13,16 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # -all: $(patsubst %.ts,%.yaml,$(wildcard recipes/*.ts)) +SETS = default none +all: $(patsubst %,recipes/%.yaml,$(SETS)) graphs: recipes/default.svg -recipes/%.yaml: recipes/%.ts - DENO_NO_UPDATE_CHECK=1 deno run $< > $@ +JSR = deno run + +recipes/none.yaml: + echo > $@ +recipes/default.yaml: recipes/default.js + DENO_NO_UPDATE_CHECK=1 $(JSR) $< > $@ recipes/%.gv.txt: recipes/%.yaml { cd .. && cargo +nightly run --release --bin graph $(patsubst recipes/%.yaml,%,$<); } > $@ -- cgit v1.2.3-70-g09d2