On Sun, 2006-06-11 at 16:39 +0200, Wouter van Ooijen wrote: > > How about: > > > > echo "no valid CHIP defined in your Makefile" > > > > That's how I'd do it in UNIX anyway. > > That's ~ 1/3 of the solution: the message to the user. Next 1/3: 'echo' > is not a makefile command, so I must make a dummy target and specify > "echo" as command to make that target? How do I make sure that that > target is the first one to be build? And then the last 1/3: how do I > stop the makefile execution? >From the info file for make... "After each shell command returns, `make' looks at its exit status. If the command completed successfully, the next command line is executed in a new shell; after the last command line is finished, the rule is finished. If there is an error (the exit status is nonzero), `make' gives up on the current rule, and perhaps on all rules." Wouter, you NEED to RTM, it's all there ! Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist