From edfa2fe0267188fae76f82e7b32f3251ec1290bd Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 14 May 2023 14:56:37 +0200 Subject: [PATCH] chore: support more than one target Signed-off-by: Matej Focko --- .common/makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.common/makefile b/.common/makefile index e17e79c..58c3485 100644 --- a/.common/makefile +++ b/.common/makefile @@ -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