Repository navigation
Add support to the make module for targets with options - #18848
Closed
stevekuznetsov wants to merge 1 commit into
Closed
stevekuznetsov wants to merge 1 commit into
stevekuznetsov wants to merge 1 commit into
Conversation
resmo
reviewed
Dec 7, 2016
Contributor
There was a problem hiding this comment.
Ansible 3.2? we are not there yet 😂
Contributor
Author
There was a problem hiding this comment.
I'll blame that one on dyslexia :)
stevekuznetsov
force-pushed
the
skuznets/make
branch
from
December 7, 2016 15:53
019bd42 to
6273ef6
Compare
In order to run a `make` target with options, we need to not assume that the target that is passed in to the module is to be interpreted as one command-line argument. This allows us to support targets with options like: $ make some-target -o some-file Where the `some-target` target skips rebuilding `some-file` even if the file is old. Currently, the implementation would attempt to run the `some-target -o some-file` target, which does not exist. `make` does not allow for targets with spaces in their names, so we should be safe to break up the command-line arguments like this and not risk mutilating a valid target name. Signed-off-by: Steve Kuznetsov <[email protected]>
stevekuznetsov
force-pushed
the
skuznets/make
branch
from
December 8, 2016 20:04
6273ef6 to
c3dd641
Compare
Contributor
Author
|
@jimi-c do you know why this |
Contributor
Author
|
Closing for inactivity ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ISSUE TYPE
COMPONENT NAME
makeANSIBLE VERSION
SUMMARY
In order to run a
maketarget with options, we need to notassume that the target that is passed in to the module is to
be interpreted as one command-line argument. This allows us
to support targets with options like:
$ make some-target -o some-file
Where the
some-targettarget skips rebuildingsome-fileeven if the file is old. Currently, the implementation would
attempt to run the
some-target -o some-filetarget, whichdoes not exist.
makedoes not allow for targets with spaces in their names,so we should be safe to break up the command-line arguments
like this and not risk mutilating a valid target name.
Signed-off-by: Steve Kuznetsov [email protected]
BEFORE
AFTER
(example after has a failed
maketarget, but it runs correctly, just that example failed in the middle of the run)@LinusU @gregdek I've added the version comment in the documentation.