[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Testing rule success
From: |
David A. Greene |
Subject: |
Testing rule success |
Date: |
Mon, 30 Jul 2007 01:00:05 -0500 |
User-agent: |
KMail/1.9.5 |
Say I have a rule with an ignored-error action:
some_file:
-$(DO_SOMETHING) > $@
Is there a way to test for existence of some_file from another rule?
For example:
some_rule : some_file
$(if $(DO_EXISTENCE_TEST_HERE),$(DO_GOODSTUFF),$(DO_BADSTUFF))
$(wildcard some_file) doesn't always seem to be reliable.
Ideas?
-Dave