-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (36 loc) · 1.18 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
PHONY: run-tests
run-tests:
@cabal test
build-all:
@cabal build
build-lib:
@cabal build lib:audiocate
build-cli:
@cabal build exe:audiocate
PHONY: build-gui
build-gui:
@sh gui/compileResources.sh
@cabal build audiocate-gui
PHONY: install-cli
install-cli:
@cabal install exe:audiocate --overwrite-policy=always
PHONY: install-gui
install-gui:
@cabal install audiocate-gui --overwrite-policy=always
install:
@cabal install exe:audiocate --overwrite-policy=always
@cabal install audiocate-gui --overwrite-policy=always
run-gui:
@cabal run audiocate-gui
benchmark-test:
@cabal run bench -- --svg test/output/bench_results.svg --csv test/output/bench_results.csv +RTS -T
benchmark-pattern:
@cabal run bench -- -p $(pattern) --svg test/output/bench_results.svg --csv test/output/bench_results.csv +RTS -T
analyse-spectrograms:
sh test/analyse/createSpectrograms.sh
sh test/analyse/analyseSpectrograms.sh
generate-docs:
cabal haddock --html docs
cp -r ./dist-newstyle/build/x86_64-linux/ghc-9.4.7/audiocate-0.2.0.0/doc/html/audiocate/ ./docs
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.* ?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'