Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ZIPI_REPO = https://github.com/udem-dlteam/zipi
ZIPI_BRANCH = master
PYTHON38 = python3

zipi:
git clone $(ZIPI_REPO) $@
cd zipi && git checkout $(ZIPI_BRANCH)

.PHONY: zipi-pull
zipi-pull: zipi
@cd zipi && git pull

pyinterp: zipi-pull
@echo "Running make on the parser..."
cd zipi/parser && $(MAKE)
@echo "Running make on zp..."
cd zipi/etc/bootstrap && $(MAKE) pyinterp
@echo "Backing up old pyinterp.js..."
cp ./include/lang/py/pyinterp.js ./include/lang/py/pyinterp.js.bk
@echo "Copying pyinterp.js..."
cp zipi/etc/bootstrap/_tmpdir/pyinterp.js ./include/lang/py/pyinterp.js
@echo "Done."

.PHONY: serve
serve: pyinterp
$(PYTHON38) -m http.server 8999 --bind 127.0.0.1

clean:
rm -rf ./zipi