fix return code
add Makefile