Setup command

This commit is contained in:
Tyler Beckman 2024-09-21 17:07:44 -06:00
parent e05e467171
commit 2143ae24da
Signed by: Ty
GPG key ID: 2813440C772555A4

View file

@ -34,6 +34,13 @@ fmt:
fmtc:
find . -iname '*.hpp' -o -iname '*.h' -o -iname '*.cpp' | xargs clang-format --style=file:.class-clang-format -i
## Modifies the SRC_FILES variable to have all .cpp files in the repo
setupsrc:
sed -i "0,/SRC_FILE.\{0\}S = .*/ s//SRC_FILES = $(shell find . -iname '*.cpp' -printf '%P\n')/" Makefile
## Alias to setup SRC_FILES and then dependencies
setup: setupsrc depend
# NO EDITS NEEDED BELOW THIS LINE
CXX = g++