2021-01-03 21:09:40 +00:00
|
|
|
export PYODIDE_ROOT=$(abspath ..)
|
2018-06-20 18:54:47 +00:00
|
|
|
include ../Makefile.envs
|
|
|
|
|
2021-03-20 18:00:35 +00:00
|
|
|
ifeq ($(strip $(PYODIDE_PACKAGES)),)
|
|
|
|
else
|
|
|
|
ONLY_PACKAGES=--only "$(PYODIDE_PACKAGES)"
|
|
|
|
endif
|
|
|
|
|
2021-05-22 22:19:46 +00:00
|
|
|
all: .artifacts/bin/pyodide-build
|
2021-06-19 16:51:36 +00:00
|
|
|
mkdir -p build-logs
|
2021-12-20 19:26:27 +00:00
|
|
|
echo PYTHONPATH="$(HOSTINSTALLDIR)/lib/python:$(PYODIDE_ROOT)/pyodide-build/"
|
|
|
|
PYTHONPATH="$(HOSTINSTALLDIR)/lib/python:$(PYODIDE_ROOT)/pyodide-build/" python -m pyodide_build buildall . ../build \
|
|
|
|
$(ONLY_PACKAGES) --n-jobs $${PYODIDE_JOBS:-4} \
|
2021-06-19 16:51:36 +00:00
|
|
|
--log-dir=build-logs
|
2021-03-20 18:00:35 +00:00
|
|
|
|
2021-05-22 22:19:46 +00:00
|
|
|
.artifacts/bin/pyodide-build: ../pyodide-build/pyodide_build/**
|
2021-12-20 19:26:27 +00:00
|
|
|
mkdir -p $(HOSTINSTALLDIR)
|
|
|
|
$(HOSTPYTHON) -m pip install -e ../pyodide-build --no-deps --prefix $(HOSTINSTALLDIR)
|
2020-07-13 21:34:10 +00:00
|
|
|
|
|
|
|
update-all:
|
2021-07-12 11:54:01 +00:00
|
|
|
for pkg in $$(find . -maxdepth 1 ! -name ".*" -type d -exec basename {} \; | tail -n +2); do \
|
2021-05-03 18:51:11 +00:00
|
|
|
pyodide-build mkpkg "$${pkg}" --update; \
|
2020-07-13 21:34:10 +00:00
|
|
|
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
|