chore: Makefile improvements and cleanup #2

Closed
mvhutz wants to merge 16 commits from chore/makefile-improvements into main
Owner

Improvements to the Makefile:

  • Use .SILENT directive instead of @ prefixes
  • Add explicit .PHONY declarations
  • Set help as default target
  • Fix profile target dependencies
  • Add lambda binary to .gitignore
  • Remove old makefile-improvements.md documentation
Improvements to the Makefile: - Use .SILENT directive instead of @ prefixes - Add explicit .PHONY declarations - Set help as default target - Fix profile target dependencies - Add lambda binary to .gitignore - Remove old makefile-improvements.md documentation
mvhutz added 16 commits 2026-01-10 22:16:30 +00:00
Changed BINARY_NAME from lambda.exe to lambda for Unix systems.
The .exe extension is a Windows convention and is inappropriate
for macOS/Linux builds.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Go build already sets the executable bit on binaries, making the
explicit chmod +x unnecessary.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Declares all non-file targets as phony to prevent conflicts with
files of the same name and improve Make's performance.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds standard clean target to remove binary, output files, and
profile directory.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds help target that displays all available Make targets and their
descriptions, improving discoverability.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Creates profile directory in profile and explain targets to prevent
errors on first run.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Makes graph target depend on profile to ensure cpu.prof exists
before attempting to generate visualizations.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds .SILENT directive to suppress command echoing for all targets,
replacing individual @ prefixes. Also moves TEST variable to top with
other variables for better organization.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Documents all issues found and fixes applied to the Makefile,
including both implemented changes and remaining suggestions.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds the lambda binary to .gitignore to prevent accidentally
committing the build artifact. Previously only *.exe was ignored,
which didn't cover the Unix binary name.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds .DEFAULT_GOAL := help to make it clear that running 'make'
with no arguments will display the help message.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
mvhutz force-pushed chore/makefile-improvements from 602d8fa074 to b6133aa76e 2026-01-10 22:19:50 +00:00 Compare
mvhutz closed this pull request 2026-01-10 22:21:39 +00:00

Pull request closed

Sign in to join this conversation.