pyodide/emsdk/Makefile

26 lines
791 B
Makefile
Raw Normal View History

2019-01-10 12:40:01 +00:00
PYODIDE_ROOT=$(abspath ..)
include ../Makefile.envs
2018-07-20 00:33:56 +00:00
all: emsdk/.complete
2018-03-30 17:08:06 +00:00
2018-07-20 00:33:56 +00:00
emsdk/.complete:
if [ -d emsdk ]; then rm -rf emsdk; fi
2018-03-30 17:08:06 +00:00
git clone https://github.com/juj/emsdk.git
( \
2019-01-10 12:40:01 +00:00
cd emsdk && \
./emsdk install --build=Release sdk-fastcomp-tag-$(EMSCRIPTEN_VERSION)-64bit binaryen-tag-$(EMSCRIPTEN_VERSION)-64bit && \
2019-01-10 12:40:01 +00:00
cd .. && \
2019-04-04 11:57:47 +00:00
(cat patches/*.patch | patch -p1) && \
2019-01-10 12:40:01 +00:00
cd emsdk/binaryen/tag-$(EMSCRIPTEN_VERSION)_64bit_binaryen/ && \
make && \
2019-04-04 11:57:47 +00:00
cd ../../.. && \
cd emsdk/fastcomp-clang/tag-e$(EMSCRIPTEN_VERSION)/build_tag-e$(EMSCRIPTEN_VERSION)_64/ && \
2019-04-04 11:57:47 +00:00
make && \
cd ../../.. && \
./emsdk activate --embedded --build=Release sdk-fastcomp-tag-$(EMSCRIPTEN_VERSION)-64bit binaryen-tag-$(EMSCRIPTEN_VERSION)-64bit && \
touch .complete \
2018-03-30 17:08:06 +00:00
)
clean:
rm -rf emsdk