mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-12-22 09:01:26 +01:00
chore: support more than one target
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
e5541dc8ad
commit
edfa2fe026
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue