Okay thanks. One more thing. One part of condition should be set by a shell script.
ifneq ($(shell ./error_check),0) @echo "error"; $(error ...) else @echo "no error"; endif Only if the called bash script error_check (it is in the current directory and executable) doesn't return 0 the error-function should be called. But unfort. the script doesn't return a value or it event doesn't get called? I have also tried with ifneq ($eval ($(shell ./error_check)),0) but then I get an Make error: Makefile:14: *** missing separator. Schluss. Thanks and sorry for my newbie-questions On Mon, Jun 22, 2009 at 2:08 PM, Stephan Beal<step...@wanderinghorse.net> wrote: >> error-t: >> @echo "E R R O R";\ >> $(error error-message) > > You're mis-using $(error) here. $(error) is MAKE code, not SHELL code, and > therefore belongs in the MAKE parts of the makefile. e.g. > > ifneq (0,1) > $(error ...) > endif > > > -- > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > -- Regards, --Codefritz _______________________________________________ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make