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
|
-include $(HOME)/.mkimage/profiles.mk
|
||||||
|
|
||||||
# for immediate assignment
|
# for immediate assignment
|
||||||
ifndef ARCHES
|
ifndef ARCH
|
||||||
ifdef ARCH
|
ARCH := $(shell arch \
|
||||||
ARCHES := $(ARCH)
|
|
||||||
else
|
|
||||||
ARCHES := $(shell arch \
|
|
||||||
| sed 's/i686/i586/; s/armv7.*/armh/; s/armv.*/arm/; s/ppc.*/ppc/')
|
| sed 's/i686/i586/; s/armv7.*/armh/; s/armv.*/arm/; s/ppc.*/ppc/')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef ARCHES
|
||||||
|
ARCHES := $(ARCH)
|
||||||
endif
|
endif
|
||||||
export ARCHES
|
|
||||||
|
export ARCHES ARCH
|
||||||
|
|
||||||
export PATH := $(CURDIR)/bin:$(PATH)
|
export PATH := $(CURDIR)/bin:$(PATH)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user