emscripten-core / emscripten-core/emscripten

How to call emmake to pass down MAKEFLAGS

Open
#12,424 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I have a main Makefile that build a few Emscriptenized tools. Inside I call `emmake make`, but this does not pass down root MAKEFLAGS (parallel build), since `$(MAKE)` must be used. If I pass `MAKEFLAGS` explicitly, it creates some bogus `-j` makeflag if no MAKEFLAGS were actually passed to the main make.

Is there an accepted way of passing down MAKEFLAGS to submake? Should I use `emmake $(MAKE)`?

I can create my own SUBMAKEFLAGS - that should work, but it's a somewhat nasty hack.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.