On May 20, 2008, at 12:49 AM, Hongliang Wang wrote:


Hello all,

I need to use a very very stupid Windows application to produce something, while this application does not have any return code or error message, so the only way that I can check whether building succeed is to check if the output file exist after building ...

now this is my Makefile, could anybody tell me if this is the correct way to do this?

=============================
kit: xml
        @echo ' \ncompiling $(XML) ...'
        -$(RM) $(OUTPUT)/*.exe
        '$(BITROCK_SYSTEM)' build '$(XML)' windows
        if test -e $(OUTPUT)/*.exe; \
        then @echo ' compiling success! ...'; \
               else @echo ' compiling failes ...'; \
        fi
=============================


Thanks in advance.

Hongliang Wang

Why not use wildcard instead?
-Garrett


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to