blog/static/files/blog/leetcode/sort-matrix-diagonally/makefile
Matej Focko 2cf4a3efba
chore: run pre-commit
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-03 19:38:35 +01:00

16 lines
297 B
Makefile

CXX=clang++
CXXFLAGS=-std=c++20 -Wall -Wextra -Werror -g -pedantic
test: matrix-sort
./matrix-sort
matrix-sort: format tidy
$(CXX) $(CXXFLAGS) matrix-sort.cpp -o matrix-sort
format:
clang-format -i -style=webkit *.cpp
tidy:
clang-tidy *.cpp -- $(CXXFLAGS)
.PHONY: matrix-sort format tidy