Makefile: add .gitignore and service/autorun to install target

(cherry picked from commit 017d5c5ea46704388993d89656255bee494ffd71)

Conflicts:
	Makefile
Makefile: if .gitignore is missing, skip its installation

(cherry picked from commit 6b75adba804dec40c484b78f46848757b1381e5b)