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++ CXX=clang++
CXXFLAGS=-std=c++20 -Wall -Wextra CXXFLAGS=-std=c++20 -Wall -Wextra
main: format main.cpp %: format %.cpp
$(CXX) $(CXXFLAGS) -g main.cpp -o main $(CXX) $(CXXFLAGS) -g $^ -o $@
format: format:
clang-format -i -style=google main.cpp clang-format -i -style=google *.cpp