|
From: | Greg Chicares |
Subject: | Re: fail, if a target was not generated |
Date: | Wed, 12 Oct 2005 22:16:54 +0000 |
User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
> the commands in a certain rule to generate a target always give > a return code different to 0x00. [...] > I'd like to have something like this: > > $(OUTPUT) : $(INPUT) > -command -o $@ -c $< > fail_if_target_does_not_exist_or_is_older_than_input $@ $< [[ -e $@ ]] || echo "$@ does not exist" [[ $@ -ot $< ]] && echo "$@ is older than $<"
[Prev in Thread] | Current Thread | [Next in Thread] |