2023-05-11 11:50:58 +00:00
|
|
|
build: main.c
|
2023-05-11 17:19:56 +00:00
|
|
|
@echo "Building executable"
|
2022-10-25 12:35:47 +00:00
|
|
|
|
2023-05-11 17:19:56 +00:00
|
|
|
@mkdir -p "./Build"
|
2022-10-25 12:35:47 +00:00
|
|
|
|
2023-05-11 17:19:56 +00:00
|
|
|
@clang main.c carg-parse/carg-parse.c -o "./Build/BigLetter"
|
|
|
|
|
|
|
|
@echo "Finished building executable"
|
|
|
|
@echo "Executable is located at './Build/BigLetter'"
|
2022-10-25 12:52:03 +00:00
|
|
|
|
|
|
|
usage:
|
2023-05-11 17:19:56 +00:00
|
|
|
@echo "BigLetter Usage:"
|
|
|
|
@echo "Location: ./Build/BigLetter"
|
|
|
|
@echo "Arguments:"
|
|
|
|
@echo "Required: Input Text"
|
|
|
|
@echo "Optional: Replacement True and False Characters"
|
|
|
|
@echo "Optional: Verbose"
|
2023-05-11 17:23:41 +00:00
|
|
|
@echo "'./Build/BigLetter' 'INPUT TEXT' -trueC 'TRUE CHAR' -falseC 'FALSE CHAR' -v
|
|
|
|
|
|
|
|
example:
|
|
|
|
@"./Build/BigLetter" "Hello, World!"
|
|
|
|
|
|
|
|
test: ./Build/BigLetter
|
|
|
|
@echo "If any of these tests segfault, or do not output Hello, World!, then either revert your changes or open an issue"
|
|
|
|
@"./Build/BigLetter" "Hello, World!"
|
|
|
|
@"./Build/BigLetter" "Hello, World!" -v
|
|
|
|
@"./Build/BigLetter" "Hello, World!" -trueC @
|
|
|
|
@"./Build/BigLetter" "Hello, World!" -falseC @
|
|
|
|
@"./Build/BigLetter" "Hello, World!" -trueC @ -falseC y
|
|
|
|
@"./Build/BigLetter" "Hello, World!" - trueC @ -falseC y -v
|
2022-10-25 12:55:28 +00:00
|
|
|
|
2022-10-25 12:35:47 +00:00
|
|
|
clean:
|
2023-05-11 17:19:56 +00:00
|
|
|
@echo "Cleaning build directory"
|
2022-10-25 12:52:03 +00:00
|
|
|
|
2023-05-11 17:19:56 +00:00
|
|
|
@rm -rf "./Build"
|
2022-10-25 12:52:03 +00:00
|
|
|
|
2023-05-11 17:19:56 +00:00
|
|
|
@echo "Finished cleaning build directory"
|