blog/static/files/blog/leetcode/sort-matrix-diagonally/makefile
Matej Focko 7ed3cd3298
blog(leetcode): add matrix sort
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-03-04 23:13:20 +01:00

16 lines
No EOL
296 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