diff --git a/Makefile b/Makefile index 450081b..68509bc 100644 --- a/Makefile +++ b/Makefile @@ -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++