blog/files/blog/leetcode/sort-matrix-diagonally/makefile
github-actions[bot] 00c23a0553 deploy: e881234412
2024-01-06 16:30:44 +00: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