diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-30 19:13:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-30 19:13:56 +0200 |
commit | 4e109e806c3c177f10b842865a21e689c0f5a10d (patch) | |
tree | bd0ac7c3899d78d53dc3201e7dada221a42281d0 /data/makefile | |
parent | cec458036f8b36c7b443d3cc1185a14817b35bbe (diff) | |
download | hurrycurry-4e109e806c3c177f10b842865a21e689c0f5a10d.tar hurrycurry-4e109e806c3c177f10b842865a21e689c0f5a10d.tar.bz2 hurrycurry-4e109e806c3c177f10b842865a21e689c0f5a10d.tar.zst |
recipe generation with javascript for portability to nodejs which we use for flatpak
Diffstat (limited to 'data/makefile')
-rw-r--r-- | data/makefile | 11 |
1 files changed, 8 insertions, 3 deletions
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 <https://www.gnu.org/licenses/>. # -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,%,$<); } > $@ |