deno_sdl2 0.3.1

SDL2 Bindings to Deno
CARGO_BUILD := deno_bindgen -- --features "use-vcpkg"
TARGET := deno_sdl2

RUST_SOURCE := src/lib.rs

$(TARGET): $(RUST_SOURCE)
	$(CARGO_BUILD)

fmt:
	deno fmt --ignore=target/
	cargo fmt

lint: fmt
	deno lint --ignore=target/

test: fmt 
	deno run -A --unstable tests/mp3_flag.ts

clean:
	rm -rf deno_sdl2

.PHONY: fmt lint test