diff options
author | Chris Hofstaedtler <chris.hofstaedtler@deduktiva.com> | 2022-07-30 21:21:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-30 12:21:11 -0700 |
commit | b965a83b0fe6a2645fc251b8cb430206bc125efb (patch) | |
tree | 406d8027d38b30cea5cf03e8b38ae9fecd7b6a4a | |
parent | 8c6d7bc2b8787d58a582d40987aef979b0d7e9ed (diff) | |
download | open-iscsi-b965a83b0fe6a2645fc251b8cb430206bc125efb.tar.gz |
make: avoid hard-coding path to sed (#357)
Just use PATH to find sed. Not all distributions have moved to a /usr-merged
layout yet.
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
-rw-r--r-- | doc/Makefile | 2 | ||||
-rw-r--r-- | etc/Makefile | 2 | ||||
-rw-r--r-- | libopeniscsiusr/Makefile | 2 | ||||
-rw-r--r-- | utils/Makefile | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile index 47e14a9..882bea1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -7,7 +7,7 @@ ifeq ($(TOPDIR),) TOPDIR = .. endif -SED = /usr/bin/sed +SED ?= sed INSTALL = install DESTDIR ?= diff --git a/etc/Makefile b/etc/Makefile index c47c180..6dd6a41 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -19,7 +19,7 @@ initddir ?= $(etcdir)/init.d HOMEDIR ?= $(etcdir)/iscsi -SED = /usr/bin/sed +SED ?= sed INSTALL = install SYSTEMD_SOURCE_FILES = iscsid.socket iscsiuio.socket diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile index 757a853..cee97a1 100644 --- a/libopeniscsiusr/Makefile +++ b/libopeniscsiusr/Makefile @@ -29,7 +29,7 @@ PKGCONF_DIR ?= $(LIB_DIR)/pkgconfig MAN_DIR = $(prefix)/share/man PKG_CONFIG ?= /usr/bin/pkg-config -SED ?= /usr/bin/sed +SED ?= sed LIBISCSI_USR_DIR=$(TOPDIR)/libopeniscsiusr diff --git a/utils/Makefile b/utils/Makefile index d4b384d..b4f09b3 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -7,7 +7,7 @@ # from the top-level make file. # -SED = /usr/bin/sed +SED ?= sed INSTALL = install CHMOD = chmod |