26cdff29ec
as PYTHON_BIN, ACTIVE_SCRIPT and INSTALL_PYAUDIO. Fixed echo statements not using @ to suppress double message output. Deprecated the usage of ECHOCMD := /bin/echo -e because it has no effect: https://stackoverflow.com/questions/60387684/how-to-make-the-makefile-echos-to-use-bin-echo-e # Conflicts: # Makefile
36 lines
600 B
Makefile
36 lines
600 B
Makefile
SHELL := /bin/bash
|
|
|
|
.SHELLFLAGS := -eu -o pipefail -c
|
|
.DELETE_ON_ERROR:
|
|
MAKEFLAGS += --warn-undefined-variables
|
|
MAKEFLAGS += --no-builtin-rules
|
|
.SUFFIXES:
|
|
|
|
$(shell mkdir -p .build)
|
|
|
|
.PHONY: all
|
|
all: run
|
|
|
|
.PHONY: run
|
|
run: build-tslib
|
|
tmux new -d -s anki-react "make run-pybackend"
|
|
tmux split-window "make run-react"
|
|
tmux attach
|
|
|
|
.PHONY: run-pybackend
|
|
run-pybackend:
|
|
../pyenv/bin/pip install bottle
|
|
../pyenv/bin/python pybackend.py
|
|
|
|
.PHONY: build-tslib
|
|
build-tslib:
|
|
(cd ../tslib && make build)
|
|
|
|
.PHONY: run-react
|
|
run-react: .build/deps
|
|
npm run start
|
|
|
|
.build/deps: package.json
|
|
npm i
|
|
@touch $@
|