Setup command
This commit is contained in:
parent
e05e467171
commit
2143ae24da
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -34,6 +34,13 @@ fmt:
|
||||||
fmtc:
|
fmtc:
|
||||||
find . -iname '*.hpp' -o -iname '*.h' -o -iname '*.cpp' | xargs clang-format --style=file:.class-clang-format -i
|
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
|
# NO EDITS NEEDED BELOW THIS LINE
|
||||||
|
|
||||||
CXX = g++
|
CXX = g++
|
||||||
|
|
Loading…
Reference in a new issue