Added template to avoid writing boilerplate code every day
This commit is contained in:
parent
d875b7426e
commit
c33e83e373
2 changed files with 47 additions and 0 deletions
|
@ -13,6 +13,9 @@ day4.out: out/types.o day4.cpp
|
|||
day5.out: out/types.o day5.cpp
|
||||
g++-10 -std=c++2a $(flags) day5.cpp out/types.o -o $@
|
||||
|
||||
day%.cpp:
|
||||
cp template.cpp $@
|
||||
|
||||
out/types.o: types.hpp types.cpp
|
||||
mkdir -p out/
|
||||
g++-10 -std=c++2a $(flags) -c types.cpp -o $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue