update to template
This commit is contained in:
parent
ca03d93f04
commit
e64f1a0f1e
2 changed files with 11 additions and 5 deletions
|
@ -7,7 +7,7 @@ SortIncludes: true
|
|||
IncludeBlocks: Regroup
|
||||
IncludeCategories:
|
||||
# System headers from C
|
||||
- Regex: '<(cassert|ccomplex|cctype|cerrno|cfenv|cfloat|cinttypes|ciso646|climits|clocale|cmath|csetjmp|csignal|cstdalign|cstdarg|cstdatomic|cstdbool|cstddef|cstdint|cstdio|cstdlib|cstdnoreturn|cstring|ctgmath|cthreads|ctime|cuchar|cwchar|cwctype)>'
|
||||
- Regex: '<c(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)>'
|
||||
Priority: 3
|
||||
# System headers without extension.
|
||||
- Regex: '<([A-Za-z0-9\Q/-_\E])+>'
|
||||
|
|
14
Makefile
14
Makefile
|
@ -1,5 +1,5 @@
|
|||
TARGET = A2
|
||||
SRC_FILES = main.cpp atmFunctions.cpp
|
||||
TARGET = CHANGEME
|
||||
SRC_FILES = main.cpp
|
||||
|
||||
# Tyler's custom makefile extensions for CSCI200 (anyone can use these if they want)
|
||||
.DEFAULT_GOAL := all # Necessary so `make` doesn't run the "pack" target, as it is declared before "all"
|
||||
|
@ -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++
|
||||
|
@ -73,5 +80,4 @@ depend:
|
|||
.PHONY: all clean depend
|
||||
|
||||
# DEPENDENCIES
|
||||
main.o: main.cpp atmFunctions.h
|
||||
atmFunctions.o: atmFunctions.cpp
|
||||
main.o: main.cpp
|
||||
|
|
Loading…
Reference in a new issue