pyodide/packages/Makefile

18 lines
513 B
Makefile
Raw Normal View History

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
all:
2020-12-07 23:19:16 +00:00
mkdir -p $(PYODIDE_LIBRARIES)
PYTHONPATH=$(PYODIDE_LIBRARIES)/lib/python ../bin/pyodide buildall . ../build \
--target=$(TARGETPYTHONROOT) --only $(PYODIDE_PACKAGES) --install-dir $(PYODIDE_LIBRARIES)
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