# Every target always does its work; nothing is skipped based on file times.

TSC ?= tsc
NODE ?= node

.PHONY: all build test bundle clean

all: test bundle

build:
	$(TSC) -p .

test: build
	$(NODE) --test build/test/*.test.js

bundle: build
	$(NODE) build/tools/bundle.js

clean:
	$(RM) -rf build dist

podman:
	podman build -t sandbattery-build .

tarball:
	cd ..; tar czvf sandbattery.tar.gz --exclude sandbattery/.git --exclude sandbattery/build --exclude sandbattery/dist sandbattery
