Skip to content

Makefile Improvements - #17

Merged
gsteel merged 1 commit into
laminas:1.0.xfrom
gsteel:cleanup
Oct 7, 2026
Merged

gsteel merged 1 commit into
laminas:1.0.xfrom
gsteel:cleanup

Conversation

@gsteel

@gsteel gsteel commented Oct 6, 2026

Copy link
Copy Markdown
Member

Instead of using awk to automatically collect help text from targets, a macro is defined and used per job to aggregate help text into a variable.

The help target then becomes echo $(HELP).

The reason for this which is also addressed in this patch is that we don't want to see a list of targets that are not relevant to current project, i.e. we don't want to see psalm targets when psalm is not being used.

awk can't handle this conditional inclusion, hence the MK_HELP macro.

@gsteel gsteel added this to the 1.0.0 milestone Oct 6, 2026
@gsteel
gsteel requested a review from a team October 6, 2026 21:11

@froschdesign froschdesign left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conflict must be solved but everything else looks good and is understandable!

@gsteel gsteel self-assigned this Oct 7, 2026
Instead of using `awk` to automatically collect help text from targets, a macro is defined and used per job to aggregate help text into a variable.

The `help` target then becomes `echo $(HELP)`.

The reason for this which is also addressed in this patch is that we don't want to see a list of targets that are not relevant to current project, i.e. we don't want to see `psalm` targets when `psalm` is not being used.

`awk` can't handle this conditional inclusion, hence the `MK_HELP` macro.

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel
gsteel merged commit 1a5a790 into laminas:1.0.x Oct 7, 2026
3 checks passed
@gsteel
gsteel deleted the cleanup branch October 7, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants