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

build: fix Makefile conditions #38579

Closed
wants to merge 1 commit into from
Closed

build: fix Makefile conditions #38579

wants to merge 1 commit into from

Conversation

pd4d10
Copy link
Contributor

@pd4d10 pd4d10 commented May 7, 2021

Fixes: #38578

@github-actions github-actions bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels May 7, 2021
@lpinca
Copy link
Member

lpinca commented May 7, 2021

It seems to work fine as is:

$ make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ cat Makefile
ifdef JOBS
        PARALLEL_ARGS = -j $(JOBS)
else
        PARALLEL_ARGS = -J
endif

.PHONY: all
all:
        $(info PARALLEL_ARGS is "$(PARALLEL_ARGS)") @true
$ JOBS=1 make
PARALLEL_ARGS is "-j 1"

@pd4d10
Copy link
Contributor Author

pd4d10 commented May 7, 2021

Oh, that's weird. I tested the built-in make and the GNU make (by brew install make) at macOS, and both do not work.

> make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
> gmake --version
GNU Make 4.3
Built for x86_64-apple-darwin20.1.0
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

@pd4d10
Copy link
Contributor Author

pd4d10 commented May 7, 2021

$ cat Makefile
ifdef JOBS
        PARALLEL_ARGS = -j $(JOBS)
else
        PARALLEL_ARGS = -J
endif

.PHONY: all
all:
        $(info PARALLEL_ARGS is "$(PARALLEL_ARGS)") @true

This one works fine for me too... but the Node.js one not.

Thanks for the information! @lpinca I'll try to look into it further

@aduh95 aduh95 added the stalled Issues and PRs that are stalled. label Sep 20, 2023
@github-actions
Copy link
Contributor

This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open.

Copy link
Contributor

Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.

@github-actions github-actions bot closed this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. stalled Issues and PRs that are stalled.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JOBS=1 make does not work at macOS
3 participants