config/options:

- now make without set PROJECT variable works, default is project "generic"
This commit is contained in:
Stephan Raue 2010-01-15 02:02:06 +01:00
parent aecf192d6c
commit 83cd79db46
2 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1,3 @@
# Use shell variables, if defined
ifeq ($(PROJECT),)
export PROJECT=generic
endif
BUILD_DIRS="build.*" BUILD_DIRS="build.*"
all: system all: system

View File

@ -1,7 +1,13 @@
# Project name # determines PROJECT, if not forced by user
PROJECT=${PROJECT} # default is generic
if [ -z "$PROJECT" ]; then
PROJECT="generic"
else
PROJECT=$PROJECT
fi
# determines TARGET_ARCH, if not forced by user # determines TARGET_ARCH, if not forced by user (i386 / x86_64 / powerpc)
# default is i386
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
TARGET_ARCH="i386" TARGET_ARCH="i386"
else else