Makefile 847 Bytes
Newer Older
1 2
clean-cache:
	rm -rf preprocessed_* data
Jan Rudolf's avatar
Jan Rudolf committed
3

4 5 6 7 8 9
clean-build:
	rm -rf venv audio_classification.egg-info

clean-all: clean-build clean-cache

setup-dev: clean-build
Jan Rudolf's avatar
Jan Rudolf committed
10 11
	python3 -m venv venv
	./venv/bin/pip3 install -U -r requirements.txt
12
	./venv/bin/pip3 install -e .
Jan Rudolf's avatar
Jan Rudolf committed
13 14 15 16

venv-activate:
	. ./venv/bin/activate

17 18 19
get-dataset:
	. ./bin/get-dataset.sh

Jan Rudolf's avatar
Jan Rudolf committed
20 21 22 23
preprocess: get-dataset
	. ./venv/bin/activate && \
	python3 audio_classification/preprocess.py

24 25 26 27 28 29 30
build-frontend:
	rm -rf audio_classification/run/static
	parcel build audio_classification/run/frontend/index.html --out-dir audio_classification/run/static

watch-frontend:
	parcel audio_classification/run/frontend/index.html

Jan Rudolf's avatar
Jan Rudolf committed
31
export-libs:
Jan Rudolf's avatar
Jan Rudolf committed
32
	./venv/bin/pip3 freeze > requirements.txt
Jan Rudolf's avatar
Jan Rudolf committed
33 34 35 36

ntb:
	. ./venv/bin/activate && \
	jupyter notebook
37 38 39 40

server:
	. ./venv/bin/activate && \
	python3 audio_classification/run/app.py