From e0c95f15a7a859ee41a6561cae1e53c17a23a0c3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 22 Feb 2023 21:53:41 +0100 Subject: makefiles: avoid grep Avoid getting annoyting grep warning and use just awk to get the value. --- udev/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udev') diff --git a/udev/Makefile.in b/udev/Makefile.in index 5ee30d09c..e592c534d 100644 --- a/udev/Makefile.in +++ b/udev/Makefile.in @@ -20,7 +20,7 @@ include $(top_builddir)/make.tmpl DM_RULES=10-dm.rules 13-dm-disk.rules 95-dm-notify.rules LVM_RULES=11-dm-lvm.rules 69-dm-lvm.rules -DM_DIR=$(shell $(GREP) "\#define DM_DIR" $(top_srcdir)/libdm/misc/dm-ioctl.h | $(AWK) '{print $$3}') +DM_DIR=$(shell $(AWK) '/\#define DM_DIR/ {print $$3}' $(top_srcdir)/libdm/misc/dm-ioctl.h) SYSTEMDRUN=@SYSTEMD_RUN_CMD@ ifeq ("@UDEV_RULE_EXEC_DETECTION@", "yes") -- cgit v1.2.1