Add auto install rules for makefile