PYTHON = python3
export PYTHON

all:

ALL = \
	abi/steam-runtime-abi.json \
	$(NULL)

all: $(ALL)

%.json: %.yaml abi/yaml-to-json.py
	$(PYTHON) abi/yaml-to-json.py $@ < $<
	$(PYTHON) abi/generate-libcapsule-knowledge.py

check: all
	prove --exec=bash -v tests/*.sh
	prove --exec=$(PYTHON) -v tests/*.py

clean:
	rm -fr $(ALL)

# To be run in a container/chroot that has all the required libraries
# installed already, for all the supported architectures. As a result
# this is not done at build-time.
maintainer-update-expectations:
	abi/have-all-libraries.py
	abi/generate-expectations.py
