Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- PBMake 2.17G for Clipper, Xbase++, C and˙+--------------------------------------------------------------+ - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Q. My make script stops part way and doesn't complete.

A. If any action in the make fails, PBMake intentionally stops.

   If you are compiling a module, and your compiler ends with an
   errorlevel higher than 0 when it quits, the make process stops.

   Compilers usually exit with an errorlevel of 0 if everything went OK.

   If you want Clipper to exit with an errorlevel when something goes
   wrong, you must add /ES2 to the FLAG= directive.
   (Clipper 5.0 or higher)

A. There are 5 directives which will allow you to run an executable
   file: SUCCESS=, FAILURE=, NONEED=, PRECOMPILECMD= and PRELINKCMD=.
   If you use one of these to run a batch file, and you forget to use
   the dos CALL command which allows nested batch files, MAKE.BAT will
   lose scope and stop running.

   Solution:
   Check your link script for any of the above directives, and check to
   see if they are calling a batch file. If so, place the CALL directive
   in the directive before the batch file name.

   SUCCESS= GOODRUN.BAT

   Should be:

   SUCCESS= CALL GOODRUN.BAT

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson