Mail Archives: djgpp/1996/04/21/03:44:25
On 19 Apr 1996, Alexander Lehmann wrote:
> : default all verif clean depend install:
> : (cd FirstSubDir; make $@)
> : (cd SecondSubDir; make $@)
>
> The doesn't work, because under unix, the command line (cd something;make)
> is processed by the unix shell (usually sh or bash) and the command.com of
> DOS doesn't support such a syntax. You can do recursive makes with the
> -C option, e.g. make -C FirstSubDir $@.
Better still, just change those lines to something that COMMAND.COM can
grok (it doesn't understand multiple commands on a single line). Try
this:
default all verif clean depend install:
cd FirstDir
make $@
cd ..
cd SecondDir
make $@
cd ..
(You should always `cd ..' at the end, since in DOS the directory isn't
restored when the sub-Make exits.)
- Raw text -