fix position check
add install and uninstall to global Makefile