forked from larsyencken/wide-language-index
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (43 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Makefile
#
ENV = env
PIP = $(ENV)/bin/pip
PY = $(ENV)/bin/python
default: help
help:
@echo
@echo 'Commands for working with the index'
@echo
@echo ' make env build the sandbox required for other commands'
@echo ' make audit check that annotations are all valid'
@echo ' make fetch fetch all audio samples in the index'
@echo ' make normalize reformat all json records to a standard form'
@echo ' make annotate start an annotation session'
@echo ' make mirror mirror samples to s3'
@echo ' make rss scrape rss feeds for new audio samples'
@echo ' make clips make short clips for every good annotation'
@echo
env: requirements.lock
test -d $(ENV) || python -m venv $(ENV)
$(PIP) install -r requirements.lock
touch env
audit: env
$(PY) src/audit.py
fetch: env
mkdir -p samples
$(PY) src/fetch_index.py
normalize: env
$(PY) src/normalize.py
annotate: env
$(PY) src/annotate.py || :
make stats
stats: env
$(PY) src/annotation_stats.py STATS.md
mirror: env
$(PY) src/mirror.py
rss: env
$(PY) src/fetch_rss_feed.py
clips: fetch env
mkdir -p samples/_annotated
$(PY) src/generate_clips.py