mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
build: Use $$(OBJ) consistently in rules macros.
This commit is contained in:
parent
6d682e4b17
commit
808b99bd27
@ -7,11 +7,11 @@ define create-rules-cargo
|
||||
$(call create-rules-common,$(1),$(2),$(3))
|
||||
|
||||
ifeq ($(CONTAINER),1)
|
||||
$(OBJ)/.$(1)-configure$(3):
|
||||
$$(OBJ)/.$(1)-configure$(3):
|
||||
@echo ":: configuring $(3)bit $(1)..." >&2
|
||||
touch $$@
|
||||
|
||||
$(OBJ)/.$(1)-build$(3):
|
||||
$$(OBJ)/.$(1)-build$(3):
|
||||
@echo ":: building $(3)bit $(1)..." >&2
|
||||
cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \
|
||||
cargo build $$(filter -j%,$$(MAKEFLAGS)) --target "$$(ARCH$(3))-unknown-linux-gnu" --target-dir $$($(2)_OBJ$(3)) $$(CARGO_BUILD_ARG)
|
||||
|
@ -9,7 +9,7 @@ $(call create-rules-common,$(1),$(2),$(3))
|
||||
$(2)_OBJ$(3) := $$($(2)_OBJ$(3))/$(4)
|
||||
|
||||
ifeq ($(CONTAINER),1)
|
||||
$(OBJ)/.$(1)-configure$(3):
|
||||
$$(OBJ)/.$(1)-configure$(3):
|
||||
@echo ":: configuring $(3)bit $(1)..." >&2
|
||||
rsync -arx "$$($(2)_SRC)/" "$$($(2)_OBJ$(3))/"
|
||||
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
|
||||
@ -25,7 +25,7 @@ $(OBJ)/.$(1)-configure$(3):
|
||||
sed -re 's@_LDFLAGS=@_LDFLAGS= $$$$(LDFLAGS) @' -i "$$($(2)_OBJ$(3))/Makefile"
|
||||
touch $$@
|
||||
|
||||
$(OBJ)/.$(1)-build$(3):
|
||||
$$(OBJ)/.$(1)-build$(3):
|
||||
@echo ":: building $(3)bit $(1)..." >&2
|
||||
rsync -arx "$$($(2)_SRC)/" "$$($(2)_OBJ$(3))/"
|
||||
env $$($(2)_ENV$(3)) \
|
||||
|
Loading…
Reference in New Issue
Block a user