forked from altcloud/mkimage-profiles
Makefile: fixed an interbug
This inobvious buglet has been spotted shortly after
1.1.0 refactoring was roughly over; the problem is
that armh-specific targets would get ignored without
explicit ARCH=armh.
It's commit 768df7e9e9
which streamlined introspection within main.mk
and a bug in Makefile which left ARCH empty
even upon having autodetected it for ARCHES.
The current version is more straightforward as a bonus.
This commit is contained in:
parent
fbe571e296
commit
84ad4092dc
13
Makefile
13
Makefile
@ -6,15 +6,16 @@
|
||||
-include $(HOME)/.mkimage/profiles.mk
|
||||
|
||||
# for immediate assignment
|
||||
ifndef ARCHES
|
||||
ifdef ARCH
|
||||
ARCHES := $(ARCH)
|
||||
else
|
||||
ARCHES := $(shell arch \
|
||||
ifndef ARCH
|
||||
ARCH := $(shell arch \
|
||||
| sed 's/i686/i586/; s/armv7.*/armh/; s/armv.*/arm/; s/ppc.*/ppc/')
|
||||
endif
|
||||
|
||||
ifndef ARCHES
|
||||
ARCHES := $(ARCH)
|
||||
endif
|
||||
export ARCHES
|
||||
|
||||
export ARCHES ARCH
|
||||
|
||||
export PATH := $(CURDIR)/bin:$(PATH)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user