summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGabriel Ganne <gabriel.ganne@qosmos.com>2017-01-23 12:08:58 +0100
committerDave Wallace <dwallacelf@gmail.com>2017-01-24 16:11:44 +0000
commit898171afd9c7d37bc223c6520edad54980ad12fb (patch)
treec7fb0a736cc14dc3229269a51ab91fa747ad5843 /Makefile
parent1fd5d01eff9d97b8bb34edaaaa7703b5a04b4941 (diff)
fix OS_ID test in root Makefile
fixup for 2ce7f9834ab55728520bff0dd15f8d82c10b95a0 redhat, centos -> rpm debian, ubuntu -> deb Change-Id: I0a07d3689b2bb5656d1bc688677680f83ac2e0bb Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 71eec082aee..2af634033d3 100644
--- a/Makefile
+++ b/Makefile
@@ -30,9 +30,9 @@ OS_ID = $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"
OS_VERSION_ID= $(shell grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
endif
-ifeq ($(OS_ID),ubuntu)
+ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
PKG=deb
-else ifeq ($(OS_ID),centos)
+else ifeq ($(filter rhel centos,$(OS_ID)),$(OS_ID))
PKG=rpm
endif