adapt makefile to use sudo, echo, usermod, adduser, getent as variables

This commit is contained in:
iceman1001 2022-10-16 09:19:13 +02:00
commit 250fdedeac
2 changed files with 19 additions and 11 deletions

View file

@ -37,7 +37,7 @@ FALSE = false
TAR = tar
TARFLAGS ?= -v --ignore-failed-read -r
TARFLAGS += -C .. -f
CROSS ?= arm-none-eabi-
CROSS ?= arm-none-eabi-
CC ?= gcc
CXX ?= g++
SH = sh
@ -47,6 +47,14 @@ SWIG = swig
CC_VERSION = $(shell $(CC) -dumpversion 2>/dev/null|sed 's/\..*//')
CC_VERSION := $(or $(strip $(CC_VERSION)),0)
ECHO = echo
SUDO = sudo
USERMOD = usermod -aG
ADDUSER = adduser
GETENT_BL = getent group bluetooth
PATHSEP=/
PREFIX ?= /usr/local
UDEV_PREFIX ?= /etc/udev/rules.d