help-make
[Top][All Lists]
Advanced

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

conflict of make autovaribable and shell register


From: Robin
Subject: conflict of make autovaribable and shell register
Date: Sat, 24 Dec 2005 14:36:46 +0800

hi,all:

I want to test a file exist in a makefile,
and write a below sentence:

EXISTED := $(shell test -e foo.c && echo $?)

but the shell function always return NULL,
i think make treated the shell register "$?" 
as her autovarible "$?".

how can i invoke the shell register "$?" into my makefile ?
how can I test some file is existed ?

best reguard
Robin.







reply via email to

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