refactor: improve Makefile structure and usability #11
Reference in New Issue
Block a user
Delete Branch "refactor/rename-it-to-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
This PR refactors the Makefile to improve usability, maintainability, and cross-platform compatibility.
The changes modernize the Makefile structure and make it more user-friendly.
Changes made:
ittarget tobuildfor better clarity and conventional naming.helptarget as the default goal to display available targets and their descriptions.lambda.exetolambdaand used${BINARY_NAME}variable consistently throughout.@prefixes with the.SILENT:directive for cleaner syntax.cleantarget to remove all build artifacts (binary, program.out, profile directory).graphtarget cross-platform by replacing macOS-specificopencommand with file:// URL echo.lambdabinary.Decisions
.SILENT:directive instead of individual@prefixes for a cleaner, more maintainable Makefile.helpthe default target so users can runmakewithout arguments to see available commands.open) in favor of cross-platform alternatives.Benefits
maketo see all available targets.${BINARY_NAME}variable consistently makes future changes easier..SILENT:directive eliminates repetitive@prefixes.ittobuildfollows standard Makefile conventions.Checklist
Changed BINARY_NAME from lambda.exe to lambda and updated all execution references to use the ${BINARY_NAME} variable. Added lambda binary to .gitignore.