help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

conditional assignment problem


From: Krzysztof Horecki
Subject: conditional assignment problem
Date: Wed, 09 May 2001 10:15:52 +0200

Hi, everybody:

I wanted to implement some sort of variable override, but...

I have some definitions:

HOST_TYPE=LINUX

ARCH=arch_common
ARCH_LINUX=arch_linux

and a conditonal assignment:

ARCH_LINUX ?= $(ARCH)

test:   
        @echo $(ARCH_$(HOST_TYPE))

as soon as I remove ARCH_LINUX definiton it doesn't work. Seems that
make does not like variables on the right side of the conditional
assignment. Any ideas how to do it without conditionals?

Kilu
    
-- 
============================
AutoForm Engineering GmbH
Technoparkstrasse 1
CH-8005 Zürich / Switzerland

Tel: +41 1 445 2121
Fax: +41 1 445 2122
www.autoform.ch
============================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]