2023-09-07 23:33:22 +00:00
|
|
|
.PHONY: format lint build build-release build-docker run debug
|
2023-09-06 20:44:29 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
g++ main.cpp -g -o anthracite
|
|
|
|
|
|
|
|
build-release:
|
|
|
|
g++ main.cpp -O2 -o anthracite
|
|
|
|
|
|
|
|
build-docker:
|
|
|
|
docker build . -t anthracite
|
|
|
|
|
|
|
|
run: build
|
2023-09-07 23:33:22 +00:00
|
|
|
./anthracite 8080
|
|
|
|
|
|
|
|
debug: build
|
|
|
|
gdb --args ./anthracite 8080
|
2023-09-06 20:44:29 +00:00
|
|
|
|
|
|
|
format:
|
|
|
|
clang-format *.cpp -i
|
2023-09-07 23:33:22 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
clang-tidy *.cpp
|
|
|
|
|
|
|
|
lint-fix:
|
|
|
|
clang-tidy *.cpp -fix -fix-errors
|