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
|
|
|
|
|
2020-12-12 10:31:53 +00:00
|
|
|
all:
|
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-06-20 18:54:47 +00:00
|
|
|
clean:
|
2020-12-10 19:37:08 +00:00
|
|
|
rm -rf ./*/build ./*/build.log
|
2020-12-07 23:19:16 +00:00
|
|
|
rm -rf ./.artifacts
|