Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Rework generation of openj9_version_info.h #46

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

keithc-ca
Copy link
Member

@keithc-ca keithc-ca commented Sep 28, 2017

This takes the second approach described in #11 in that make generates or updates openj9_version_info.h as necessary.

Fixes #11
Fixes eclipse-openj9/openj9#87

fixes ibmruntimes#87

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@jdekonin
Copy link
Collaborator

jenkins test sanity

$(foreach var,$(OPENJ9_VERSION_VARS),-e 's:@${var}@:$(value $(var)):g')

$(OUTPUT_ROOT)/vm/util/openj9_version_info.h : $(SRC_ROOT)/closed/openj9_version_info.h.in
@$(MKDIR) -p $(@D)
Copy link
Collaborator

@jdekonin jdekonin Sep 29, 2017

Choose a reason for hiding this comment

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

The directory should already be present from a successful stage-j9 target execution so the mkdir shouldn't be required here. This will likely be needed once we determine where generated artifacts from openj9 are going to be 'kept'.

Copy link
Member Author

Choose a reason for hiding this comment

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

For everyone's benefit: you can assume the actions of another target have occurred only if that target is a (possibly indirect) prerequisite. Make could legally build prerequisites in any order it sees fit (and will likely do so when allowed to do things in parallel) it is only bound by dependencies.

Copy link
Collaborator

@jdekonin jdekonin left a comment

Choose a reason for hiding this comment

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

I pulled and ran manually as well. I like it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants