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

Take make(1) executable name from $MAKE environment variable #8888

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dumbbell
Copy link
Contributor

@dumbbell dumbbell commented Oct 2, 2024

Why

A few places have the executable name hard-coded to make. However, the Makefiles require GNU make, which is might be available as another name. For instance, on *BSD where make(1) is another implementation, GNU make is available ase gmake.

This was not a problem when building Erlang/OTP. But it was when running the tests.

How

The make variable $(MAKE) which always contain the name of (or path to) the make executable being used, is passed to the shell scripts. The shell scripts then use this variable, defaulting to make if necessary.

In lib/common_test/test_server/configure.ac, the order in which the make executable is detected is swapped: gmake is tried first, then make.

[Why]
A few places have the executable name hard-coded to `make`. However, the
Makefiles require GNU make, which is might be available as another name.
For instance, on *BSD where make(1) is another implementation, GNU make
is available ase `gmake`.

This was not a problem when building Erlang/OTP. But it was when running
the tests.

[How]
The make variable `$(MAKE)` which always contain the name of (or path
to) the make executable being used, is passed to the shell scripts. The
shell scripts then use this variable, defaulting to `make` if necessary.

In `lib/common_test/test_server/configure.ac`, the order in which the
make executable is detected is swapped: `gmake` is tried first, then
`make`.
Copy link
Contributor

github-actions bot commented Oct 2, 2024

CT Test Results

    4 files    188 suites   2h 9m 52s ⏱️
1 944 tests 1 884 ✅ 60 💤 0 ❌
2 674 runs  2 591 ✅ 83 💤 0 ❌

Results for commit 1e40fa8.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

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.

1 participant