Mail Archives: djgpp/2003/08/08/12:00:20
"Eli Zaretskii" <eliz AT elta DOT co DOT il> wrote in
news:3791-Fri08Aug2003181106+0300-eliz AT elta DOT co DOT il:
>> From: Monika Hendricks <monika DOT hendricks AT t-online DOT de>
>> Newsgroups: comp.os.msdos.djgpp
>> Date: 8 Aug 2003 11:42:15 GMT
>>
>> > Anyway, the problem seems to be that a line that is supposed to
>> > delete *.o files fails, right?
>>
>> I'm not sure. I would be happy if *.o files would be created.
>
> One possible problem might be that it does a "make clean" for some
> reason. I don't have the makefile in front of me, but it strikes
> me as something weird to do when building a library.
Possibly it wants to make sure to have no files from older versions
before installing new ones?
>> > Does it help to prepend a `-' character to
>> > the offending line in the Makefile?
>>
>> I put a `-' in front of "clean :" in makefile.dj2 and in
>> /src/makefile.dj2 (the first rule here deals with this "if exist
>> del bgi\*.o") with the following result:
>
> No, that's not what I meant. You need to prepend `-' to the
> _command_ that this rule runs, like this:
>
> clean:
> -if exist bgi\*.o del bgi\*.o
>
Now I did it like you said with the following result whereas the line
123 is the one with the del bgi\*.o command.
C:\DJGPP\contrib\grx245>make -f makefile.dj2 libs
c:/djgpp/bin/make.exe -C src -f makefile.dj2
make.exe[1]: Entering directory `c:/DJGPP/contrib/grx245/src'
makefile.dj2:123: *** missing separator. Stop.
make.exe[1]: Leaving directory `c:/DJGPP/contrib/grx245/src'
make.exe: *** [libs] Error 2
Thanks a lot for your patience.
Monika
PS. I deleted the shell environment variable.
- Raw text -