mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-18 16:56:32 +00:00
chore: fix error functions in Makefile (#970)
`$(error ...)` (and `$(warning ...)`) functions in a Makefile can't be indented - if they are make displays a `*** commands commence before first target. Stop.` error.
This commit is contained in:
parent
db379bd341
commit
c4a92d772d
6
Makefile
6
Makefile
@ -66,16 +66,16 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef HOST_PLATFORM
|
ifndef HOST_PLATFORM
|
||||||
$(error We couldn\'t detect your host platform)
|
$(error We couldn\'t detect your host platform)
|
||||||
endif
|
endif
|
||||||
ifndef HOST_ARCH
|
ifndef HOST_ARCH
|
||||||
$(error We couldn\'t detect your host architecture)
|
$(error We couldn\'t detect your host architecture)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET_PLATFORM = $(HOST_PLATFORM)
|
TARGET_PLATFORM = $(HOST_PLATFORM)
|
||||||
|
|
||||||
ifneq ($(TARGET_PLATFORM),$(HOST_PLATFORM))
|
ifneq ($(TARGET_PLATFORM),$(HOST_PLATFORM))
|
||||||
$(error We don\'t support cross-platform builds yet)
|
$(error We don\'t support cross-platform builds yet)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Default to host architecture. You can override by doing:
|
# Default to host architecture. You can override by doing:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user