mirror of
https://github.com/frida/frida-node.git
synced 2026-11-07 09:35:57 -10:00
17 lines
486 B
Makefile
17 lines
486 B
Makefile
PYTHON ?= $(shell command -v python3 >/dev/null && echo python3 || echo python)
|
|
|
|
all $(MAKECMDGOALS):
|
|
@$(PYTHON) \
|
|
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_make import main; main()" \
|
|
"$(shell pwd)" \
|
|
./build \
|
|
$(MAKECMDGOALS)
|
|
|
|
git-submodules:
|
|
@if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then \
|
|
git submodule update --init --recursive --depth 1; \
|
|
fi
|
|
-include git-submodules
|
|
|
|
.PHONY: all $(MAKECMDGOALS)
|