update clear log script
simplify (or maybe more complex?) Makefile