-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (40 loc) · 1.15 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
# Makefile
# help:
# all)
# make --always-make
.DEFAULT_GOAL := help
MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
.PHONY: help
help:
@echo "\n>> help [ command list ]"
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@grep -E '^.PHONY: [a-zA-Z_-]+.*?##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = " "}; {printf "\033[35m%-30s\033[32m %s\n", $$2, $$4}'
@echo ""
.PHONY: clear ## [category]`description`.
clear:
sh ./bin/scripts/clear.sh "./build"
.PHONY: git_init ## [category]`description`.
git_init:
git submodule update --init --recursive
.PHONY: setup ## [category]`description`.
setup: git_init build
.PHONY: build ## [category]`description`.
build: clear
mkdir build && cd build && \
CC=/usr/lib/ccache/gcc CXX=/usr/lib/ccache/g++ cmake ../ -DCMAKE_BUILD_TYPE=Debug && ../bin/scripts/makerunner.sh
.PHONY: format ## [category]`description`.
format:
clang-format -i \
./**/*.cpp \
./**/*.h \
.*/**/*.cpp \
.*/**/*.h
# ./**/*.hpp
.PHONY: lint ## [category]`description`.
lint:
clang-tidy --fix-errors -p ./build -header-filter="/workspaces/naudio/include" ./src/**/*.cpp
.PHONY: documents ## [category]`description`.
documents:
doxygen