help-make
[Top][All Lists]
Advanced

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

How does $(error) work?


From: Chris Cross
Subject: How does $(error) work?
Date: Wed, 8 Dec 2010 14:20:03 -0500


Trying to understand how $(error) works. The manual says "error is
generated whenever this function is evaluated."  With the makefile below I
would expect to see output from line1 of the recipe but only see output
from $(error).
# error.mk
.PHONY: target

target:
        @echo recipe line 1
        $(error debug exit recipe line 2)

$ make -f error.mk
error.mk:5: *** debug exit recipe line 2.  Stop.


Thanks,
Chris


Chris Cross
DataPower Development
address@hidden
office 561-862-3026

reply via email to

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