rule add
    command = echo build restart.txt: self >> $out

build restart.ninja: add

rule self
    command = echo $out > $out


Change to Unix line endings
rule add
    command = echo build restart.txt: self >> $out

build restart.ninja: add

rule self
    command = echo $out > $out