Re: powercobol compile all directory projects



Pete Dashwood wrote:
Will it accept wildcard operands... ?
NMAKE *.MAK > LPT1:

Do not know, as I have never tried it. However, I can see two problem doing it the way you suggest.

First of all, the entire point of the batch file is to do things in a specific order. The first project creates rep files and object libraries required for the second, etc. That is the main problem with Pstaff. The damed thing sorts into alphabetical order, and there is no way to force a specific order except doing it manually, one DLL at a time.
The approach is fubar for OOP stuff, as inheritance levels etc. are completely discarded. Thus I split the main project up into sub-projects, and compile them in order.

Secondly, I do that when I am testing ... if the compile finishes, I proceed to the install step, and sometimes even end the batch file with a CD to the run area and execution.

NMAKE *.mak may work for a small collection of independent programs, though. I'll try it later.

Donald


.



Relevant Pages