Big-Letter/makefile

37 lines
1.1 KiB
Makefile
Raw Normal View History

2023-05-11 11:50:58 +00:00
build: main.c
@echo "Building executable"
2022-10-25 12:35:47 +00:00
@mkdir -p "./Build"
2022-10-25 12:35:47 +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:
@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:
@echo "Cleaning build directory"
2022-10-25 12:52:03 +00:00
@rm -rf "./Build"
2022-10-25 12:52:03 +00:00
@echo "Finished cleaning build directory"