Commit 84ad4092 authored by Michael Shigorin's avatar Michael Shigorin

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 768df7e9 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.
parent fbe571e2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment