1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

makefiles: avoid grep

Avoid getting annoyting grep warning and use just awk to get the
value.
This commit is contained in:
Zdenek Kabelac 2023-02-22 21:53:41 +01:00
parent c1cecc3dc5
commit e0c95f15a7

View File

@ -20,7 +20,7 @@ include $(top_builddir)/make.tmpl
DM_RULES=10-dm.rules 13-dm-disk.rules 95-dm-notify.rules DM_RULES=10-dm.rules 13-dm-disk.rules 95-dm-notify.rules
LVM_RULES=11-dm-lvm.rules 69-dm-lvm.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@ SYSTEMDRUN=@SYSTEMD_RUN_CMD@
ifeq ("@UDEV_RULE_EXEC_DETECTION@", "yes") ifeq ("@UDEV_RULE_EXEC_DETECTION@", "yes")