Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manpage: note pre/post actions effect on an alias #4672

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mwichmann
Copy link
Collaborator

@mwichmann mwichmann commented Jan 3, 2025

AddPostAction and AddPreAction apply to the action of the alias, which may not have been clear previously (see #2281).

Expanded the example for AddPreAction using a multi-step build.

I don't consider that this completes the referenced issue, since it only provides information to those who happen to read those manpage snips - there is neither a warning on use nor a lessening of the impression that "it ought to work".

No code is affected.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

@mwichmann mwichmann changed the title Manpage: note pre/post actions effect on an alias [skip appveyor] Manpage: note pre/post actions effect on an alias Jan 3, 2025
@mwichmann mwichmann force-pushed the issue/alias-action branch from 448bca2 to d53a8ca Compare March 3, 2025 15:20
AddPostAction and AddPreAction apply to the action of the alias,
which may not have been clear previously (see SCons#2281).

Expanded the example for AddPreAction using a multi-step build.

Signed-off-by: Mats Wichmann <[email protected]>
The initial version of PR #4872 proposed to document that pre- and
post-actions on an alias have no effect if the alias has no action
itself. Subsequently, PR #4874 was merged to change this behavior so
that statement is backed out, but the other proposed doc improvements
in this area are retained.

Signed-off-by: Mats Wichmann <[email protected]>
@mwichmann mwichmann force-pushed the issue/alias-action branch from d53a8ca to 086a92b Compare March 8, 2025 14:04
<para>
If a <parameter>target</parameter> is an Alias target,
<parameter>action</parameter> is associated with the
action of the alias, if specified.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should alias be the Alias entity here?

<parameter>action</parameter>
to be performed
before the specified
<parameter>target</parameter>
is built.
<parameter>target</parameter>
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to only add this clarification here?
Seems like this is always true for all builders?

@@ -440,7 +460,7 @@ file into an object file.
</arguments>
<summary>
<para>
Creates an <firstterm>alias</firstterm> target that
Create an <firstterm>Alias</firstterm> target that
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be Alias entity instead?

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