1 DISTDEBIAN=$(shell grep -qi Debian /etc/issue && echo deb)
2 DISTREDHAT=$(shell grep -qi 'Red Hat' /etc/issue && echo rpm)
3 DISTSUSE=$(shell grep -qi 'SuSE' /etc/issue && echo rpm)
4 DIST=$(DISTDEBIAN)$(DISTREDHAT)$(DISTSUSE)
7 @echo "=========================================================================="
8 @echo "Use one of the following target with "
9 @echo "make -f Makefile.$(DIST) <target>"
10 @echo "=========================================================================="
11 @make -f Makefile.$(DIST)
14 @make -f Makefile.$(DIST) all
16 @make -f Makefile.$(DIST) chris
18 @make -f Makefile.$(DIST) chriss
20 @make -f Makefile.$(DIST) chrisc