1 DISTDEBIAN=$(shell grep -qi Debian /etc/issue && echo debian)
2 DISTREDHAT=$(shell grep -qi 'Red Hat' /etc/issue && echo rh)
3 DISTSUSE=$(shell grep -qi 'SuSE' /etc/issue && echo rh)
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) $@