On Sun, 11 Jun 2006, 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? Make stops on the first error unless told otherwise (with command line options). The Makefile info entry has all the data you need, including examples, and how to set up the default target. echo should exist on any system with a Posix compliant shell. This means that there is no echo on XP. I sent you the make info pages by private email. Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist