aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspencercoder <xiexiaosong@ruijie.com.cn>2023-08-22 12:42:09 +0800
committerDave Wallace <dwallacelf@gmail.com>2023-08-22 15:44:10 +0000
commitecb62d2e5d0af14e2de143a729abdf35e132e5d5 (patch)
tree7a82239abdc6bfc903cf405f8abe3bd5cfa929f2
parentfeda2ff640e3b928e6489be192cba2a7da048cce (diff)
build: support linuxmint OS
Support compiling in Linux Mint OS Type: improvement Change-Id: I08721227352b00127fe0acac67269775997fd974 Signed-off-by: spencercoder <xiexiaosong@ruijie.com.cn>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d92e1e51b68..774922772fc 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ 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 ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
+ifeq ($(filter ubuntu debian linuxmint,$(OS_ID)),$(OS_ID))
PKG=deb
else ifeq ($(filter rhel centos fedora opensuse-leap rocky,$(OS_ID)),$(OS_ID))
PKG=rpm
@@ -291,7 +291,7 @@ $(BR)/.deps.ok:
ifeq ($(findstring y,$(UNATTENDED)),y)
make install-dep
endif
-ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
+ifeq ($(filter ubuntu debian linuxmint,$(OS_ID)),$(OS_ID))
@MISSING=$$(apt-get install -y -qq -s $(DEB_DEPENDS) | grep "^Inst ") ; \
if [ -n "$$MISSING" ] ; then \
echo "\nPlease install missing packages: \n$$MISSING\n" ; \
@@ -319,7 +319,7 @@ bootstrap:
.PHONY: install-dep
install-dep:
-ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
+ifeq ($(filter ubuntu debian linuxmint,$(OS_ID)),$(OS_ID))
@sudo -E apt-get update
@sudo -E apt-get $(APT_ARGS) $(CONFIRM) $(FORCE) install $(DEB_DEPENDS)
else ifneq ("$(wildcard /etc/redhat-release)","")