-DISTDEBIAN=$(shell grep -qi Debian /etc/issue && echo deb)
-DISTREDHAT=$(shell grep -qi 'Red Hat' /etc/issue && echo rpm)
-DISTSUSE=$(shell grep -qi 'SuSE' /etc/issue && echo rpm)
+DISTDEBIAN=$(shell grep -qi Debian /etc/issue && echo debian)
+DISTREDHAT=$(shell grep -qi 'Red Hat' /etc/issue && echo rh)
+DISTSUSE=$(shell grep -qi 'SuSE' /etc/issue && echo rh)
DIST=$(DISTDEBIAN)$(DISTREDHAT)$(DISTSUSE)
switch:
@echo "=========================================================================="
@make -f Makefile.$(DIST)
-all:
- @make -f Makefile.$(DIST) all
-clean:
- @make -f Makefile.$(DIST) clean
-cleanor:
- @make -f Makefile.$(DIST) cleanor
-chris:
- @make -f Makefile.$(DIST) chris
-chriss:
- @make -f Makefile.$(DIST) chriss
-chrisc:
- @make -f Makefile.$(DIST) chrisc
+%:
+ @make -f Makefile.$(DIST) $@