-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (37 loc) · 917 Bytes
/
Makefile
File metadata and controls
50 lines (37 loc) · 917 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default: debug
debug:
cmake --preset debug
cmake --build --preset debug
ln -sf build/debug/compile_commands.json
release:
cmake --preset release
cmake --build --preset release
ln -sf build/release/compile_commands.json
test: debug
ctest --test-dir build/debug --output-on-failure
install: release
cmake --install build/release
package: release
cd build/release && cpack
arch-package:
makepkg -sf
uninstall:
cmake --build build/release --target uninstall
run-daemon: debug
./build/debug/tetherd
run-cli: debug
./build/debug/tether
run-gtk: debug
./build/debug/tether-gtk
.PHONY: fmt
fmt:
@echo "Formatting code with clang-format..."
@find ./src -not -path "*/build/*" \( -name "*.cpp" -o -name "*.hpp" \) -print0 | xargs -0 -r -n 1 clang-format -i
@echo "Done."
.PHONY: extension
extension:
@./extension/build.sh
clean:
rm -rf build
rm -f compile_commands.json
rm -rf extension/build