Skip to content

Improve Makefile with build, test, install, and format targets - #62

Merged
azimafroozeh merged 10 commits into
cwida:devfrom
azimafroozeh:feat/makefile-wrapper
Oct 7, 2025
Merged

Improve Makefile with build, test, install, and format targets#62
azimafroozeh merged 10 commits into
cwida:devfrom
azimafroozeh:feat/makefile-wrapper

Conversation

@azimafroozeh

Copy link
Copy Markdown
Contributor

This PR refactors the main Makefile to provide a cleaner and more consistent developer experience. It adds the following targets with the purpose of improving usability and workflow clarity:

  • build – Builds the FastLanes C++ components.
  • install – Installs the built C++ artefacts.
  • test – Configures, builds, and runs tests in a separate build tree.
  • format – Runs clang-format on all source directories for consistent code style.
  • bump – Bumps the fuzz seed version.
  • verify – Verifies correctness of the fuzz seed bump.
  • check-header – Verifies file headers for compliance.
  • fix-header – Automatically fixes file headers when needed.
  • help – Displays available targets and configuration variables.

so colored messages display correctly on macOS and BSD shells.

Also replaces the incorrect $(MKFILE_PATH) usage with
$(abspath $(dir $(lastword $(MAKEFILE_LIST)))) to reliably determine
the mk/ directory’s location and set REPO_ROOT to its parent.
This ensures REPO_ROOT and CRATE_ROOT print correctly across platforms.
@azimafroozeh
azimafroozeh merged commit 9006fd7 into cwida:dev Oct 7, 2025
76 checks passed
@azimafroozeh
azimafroozeh deleted the feat/makefile-wrapper branch October 7, 2025 18:15
@peterboncz

Copy link
Copy Markdown
Contributor

It works - thanks & this makes building FLS more fool-proof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants