Skip to content

build: more portable Makefile #28108

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

Closed
wants to merge 4 commits into from

Conversation

refack
Copy link
Contributor

@refack refack commented Jun 6, 2019

  • Make some $(shell) calls lazy
  • $(wildcard) instead of ls
  • $(info) instead of echo
  • $? instead of duplicated file lists

Biggest benefit: smoother experience with MSYS make (can be added to "Git Bash", or vendored)

/CC @nodejs/build-files @nodejs/platform-windows

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

* Make some `$(shell)` calls lazy
* `$(wildcard)` instead of `ls`
* `$(info)` instead of `echo`
* `$?` instead of duplicated file lists
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label Jun 6, 2019
Copy link
Contributor

@sam-github sam-github left a comment

Choose a reason for hiding this comment

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

Looks good to me

@sam-github
Copy link
Contributor

Assuming it passes ci ... :-)

@nodejs-github-bot
Copy link
Collaborator

@$(call available-node,$(run-lint-doc-md))
@touch $@
tools/.docmdlintstamp: AVALIBLE_NODE := $(available-node-shell)
tools/.docmdlintstamp: $(wildcard doc/*.md doc/**/*.md)
Copy link
Member

@richardlau richardlau Jun 13, 2019

Choose a reason for hiding this comment

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

doc/**/*.md doesn't appear to pick up all subdirectories under doc with wildcard.

Copy link
Contributor

Choose a reason for hiding this comment

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

5 mins of searching, and I couldn't even find a definition of what pattern means for wildcard() in GNU make, much less generally. I didn't think ** was supported unless the shell supported it, and I just tried on AIX, which is agressively POSIX, and it didn't expand.

@BridgeAR
Copy link
Member

BridgeAR commented Jul 5, 2019

@refack this needs a rebase

@BridgeAR
Copy link
Member

Closing, since there was no follow up for a long time.
@refack please reopen in case you would like to work on this again!

@BridgeAR BridgeAR closed this Jan 12, 2020
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants