
# ---------------------------------------------------------------------------- #
#                                    Schema                                    #
# ---------------------------------------------------------------------------- #

schema:
	flatc -g -o . schema/schema.fbs

# ---------------------------------------------------------------------------- #
#                                    Library                                   #
# ---------------------------------------------------------------------------- #

OUTPUT=build

lib: schema
	go build -buildmode=c-shared -o ${OUTPUT} ./lib

# ---------------------------------------------------------------------------- #
#                                    Python                                    #
# ---------------------------------------------------------------------------- #

python:
	poetry build

pytest: python
	RUNTIME_ENV=test poetry run pytest ./python

clean:
	rm -rf setup.py dist build schema/*.go