On Sun, Mar 10, 2013 at 12:19 PM, Roger Pepitone <
rogerpepitone.1...@gmail.com> wrote:

> ######################################
>
> TEST_TEXTS := test1.txt test2.txt test3.txt
>
> $(TEST_TEXTS) : xtest.txt
>         echo "Rebuilding $@"
>         touch $(TEST_TEXTS)
>
> xtest: $(TEST_TEXTS)
>
> clean-xtest:
>         rm $(TEST_TEXTS)
>
> ######################################
>
> make clean-xtest
> make xtest
> touch xtest.txt
> make xtest
>
>
> The first call to "make xtest" runs the rule 3 times, even though it
> should only need to do it once.
> The second call correctly only runs it once.
>

Is this correct behavior or a bug?  Is there a way to prevent it?
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to