wlog: bugfix: infinite loop of wlog-analyze using stdin.
wlog: add rebuild target.
wlog: a bit refactor.
tool: add rebuild target.