######################################
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.
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make