2018-06-20 18:54:47 +00:00
|
|
|
PYODIDE_ROOT=$(abspath ..)
|
2020-12-07 23:19:16 +00:00
|
|
|
PYODIDE_LIBRARIES=$(abspath ./.artifacts)
|
2018-06-20 18:54:47 +00:00
|
|
|
include ../Makefile.envs
|
|
|
|
|
2018-10-05 13:26:21 +00:00
|
|
|
all: deps
|
2020-12-07 23:19:16 +00:00
|
|
|
mkdir -p $(PYODIDE_LIBRARIES)
|
|
|
|
PYTHONPATH=$(PYODIDE_LIBRARIES)/lib/python ../bin/pyodide buildall . ../build \
|
|
|
|
--package_abi=$(PYODIDE_PACKAGE_ABI) --target=$(TARGETPYTHONROOT) --only $(PYODIDE_PACKAGES) --install-dir $(PYODIDE_LIBRARIES)
|
2020-07-13 21:34:10 +00:00
|
|
|
|
|
|
|
update-all:
|
|
|
|
for pkg in $$(find . -maxdepth 1 -type d -exec basename {} \; | tail -n +2); do \
|
|
|
|
../bin/pyodide mkpkg "$${pkg}" --update; \
|
|
|
|
done
|
|
|
|
|
2018-10-05 13:26:21 +00:00
|
|
|
deps:
|
2018-11-01 20:51:49 +00:00
|
|
|
# Install build dependencies
|
2020-07-07 14:21:33 +00:00
|
|
|
$(HOSTPYTHON) -m pip install "Cython<0.30.0" Tempita
|
2018-06-20 18:54:47 +00:00
|
|
|
|
|
|
|
clean:
|
2018-07-24 17:04:15 +00:00
|
|
|
rm -rf ./*/build
|
2020-12-07 23:19:16 +00:00
|
|
|
rm -rf ./.artifacts
|