mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-27 14:08:18 +03:00
build: Add specified modules to the container build list.
And not only when ending with 32/64.
This commit is contained in:
parent
5dd383efff
commit
8726ea849d
@ -73,6 +73,7 @@ endif
|
|||||||
|
|
||||||
MAKECMDGOALS32 := $(filter-out all32,$(filter %32,$(MAKECMDGOALS)))
|
MAKECMDGOALS32 := $(filter-out all32,$(filter %32,$(MAKECMDGOALS)))
|
||||||
MAKECMDGOALS64 := $(filter-out all64,$(filter %64,$(MAKECMDGOALS)))
|
MAKECMDGOALS64 := $(filter-out all64,$(filter %64,$(MAKECMDGOALS)))
|
||||||
|
CONTAINERGOALS := $(MAKECMDGOALS32) $(MAKECMDGOALS64)
|
||||||
|
|
||||||
all: all32 all64
|
all: all32 all64
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
@ -87,7 +88,7 @@ ifeq ($(CONTAINER),)
|
|||||||
J := $(shell nproc)
|
J := $(shell nproc)
|
||||||
container-build: private SHELL := $(CONTAINER_SHELL)
|
container-build: private SHELL := $(CONTAINER_SHELL)
|
||||||
container-build:
|
container-build:
|
||||||
+$(MAKE) -j$(J) $(filter -j%,$(MAKEFLAGS)) -f $(firstword $(MAKEFILE_LIST)) $(MFLAGS) $(MAKEOVERRIDES) CONTAINER=1 $(MAKECMDGOALS32) $(MAKECMDGOALS64)
|
+$(MAKE) -j$(J) $(filter -j%,$(MAKEFLAGS)) -f $(firstword $(MAKEFILE_LIST)) $(MFLAGS) $(MAKEOVERRIDES) CONTAINER=1 $(CONTAINERGOALS)
|
||||||
.PHONY: container-build
|
.PHONY: container-build
|
||||||
|
|
||||||
all32 $(MAKECMDGOALS32): container-build
|
all32 $(MAKECMDGOALS32): container-build
|
||||||
|
@ -98,6 +98,8 @@ all$(3) $(1): $(1)$(3)
|
|||||||
all: $(1)
|
all: $(1)
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
|
CONTAINERGOALS := $(CONTAINERGOALS) $(filter $(1),$(MAKECMDGOALS))
|
||||||
|
|
||||||
|
|
||||||
$(2)_ENV$(3) = \
|
$(2)_ENV$(3) = \
|
||||||
CARGO_HOME=$$(OBJ)/.cargo \
|
CARGO_HOME=$$(OBJ)/.cargo \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user