Makefile 392 Bytes
Newer Older
Matteo's avatar
Matteo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
UNAME := $(shell uname)

ifeq ($(UNAME), Linux)
	OPEN = xdg-open
endif
ifeq ($(UNAME), Darwin)
	OPEN = open
endif
ifeq ($(UNAME), Windows)
	OPEN = start
endif

.PHONY: all clean test docs run

Matteo's avatar
update  
Matteo committed
15
16
17
18
19
20
21
22
23
24
25
build:
	cmake -S . -B build
	cmake --build build

test:
	cd build && ctest

clean:
	rm -rf build
	rm -rf bin

Matteo's avatar
Matteo committed
26
27
28
docs:
	doxygen docs/Doxyfile && $(OPEN) docs/html/index.html

Matteo's avatar
update  
Matteo committed
29
run:
Matteo's avatar
Matteo committed
30
	./bin/audio_analyser