https://stackoverflow.com/questions/28597794/how-can-i-clean-up-after-an-error-in-a-makefile
やることは同じだな