[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/50193: convergent circular rules in make
>Synopsis: convergent circular rules in make
>Arrival-Date: Thu Sep 03 07:35:00 +0000 2015
>Originator: David A. Holland
It would be useful for some process automation tasks (and even some
build tasks) if make supported circular rules that were expected to
converge after some (fixed) number of times around.
e.g. something like
foo: foo.c foo.h foo.gmon
$(CC) -pg -O2 -fuse-profile-data=foo.gmon foo.c -o foo.new
if diff foo foo.new > /dev/null 2>&1; then mv -f foo.new foo; fi
mv -f gmon.out foo.gmon
where you'd pick 20 or whatever based on your expectation.
This needs further refinement, and I am thinking out loud, but I
wanted to file this somewhere so it doesn't get forgotten.
Main Index |
Thread Index |