[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to check if a file exists?
From: |
Hongliang Wang |
Subject: |
How to check if a file exists? |
Date: |
Tue, 20 May 2008 07:49:07 +0000 |
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
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
- How to check if a file exists?,
Hongliang Wang <=
- Re: How to check if a file exists?, Garrett Cooper, 2008/05/20
- Re: How to check if a file exists?, Paul Smith, 2008/05/20
- Message not available
- RE: How to check if a file exists?, Hongliang Wang, 2008/05/20
- Re: How to check if a file exists?, Greg Chicares, 2008/05/20
- Re: How to check if a file exists?, David Boyce, 2008/05/20
- RE: How to check if a file exists?, Hongliang Wang, 2008/05/21
- Re: How to check if a file exists?, David Boyce, 2008/05/21