-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 672 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (27 loc) · 672 Bytes
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
# Makefile for audio analysis & site generation
# Variables
PYRUN = uv run
ANALYSE = $(PYRUN) -m analyse_song
SYNC = $(PYRUN) utils/sync_docs.py
MKDOCS = $(PYRUN) mkdocs
# Main Commands
.PHONY: all an sync serve clean
# Run default analysis and sync results to mkdocs 'docs' folder
all: an sync
# Analyse songs (optional ARGS="--keep --song LABEL --ref-label ALBUM")
# e.g. make an ARGS="--keep --song yagn"
an:
$(ANALYSE) $(ARGS)
# Sync results to mkdocs 'docs' folder
sync:
$(SYNC)
# Serve with MkDocs
serve:
$(MKDOCS) serve
# Sync and serve:
sas:
$(SYNC)
$(MKDOCS) serve
# Clean intermediate/temporary .wav files
clean:
find results -name "*.wav" -delete