BEGIN{ print "all: really_all\n\n" } { r=$0; gsub("[%:/?*]", "_", r) print r":\n\tbzr diff -r "$0" >"r".new || test $$? = 1\n\tmv "r".new "r"\n\n" d=d" "r } END { print ".PHONY: all really_all\n\nreally_all:"d"\n\n" }