chore: support more than one target

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-05-14 14:56:37 +02:00
parent e5541dc8ad
commit edfa2fe026
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -1,8 +1,8 @@
CXX=clang++
CXXFLAGS=-std=c++20 -Wall -Wextra
main: format main.cpp
$(CXX) $(CXXFLAGS) -g main.cpp -o main
%: format %.cpp
$(CXX) $(CXXFLAGS) -g $^ -o $@
format:
clang-format -i -style=google main.cpp
clang-format -i -style=google *.cpp