use tmpfile for test
makefile