From 2143ae24da28fe1d12b3a2538b0f2b116a257ea54a7e9c3baee5dbf68e43cd73 Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Sat, 21 Sep 2024 17:07:44 -0600 Subject: [PATCH] Setup command --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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++