From: Zdenek Kabelac Date: Mon, 8 Apr 2024 11:31:24 +0000 (+0200) Subject: makefiles: avoid using # with awk X-Git-Tag: v2_03_24~259 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=6ec84993bd7af49e4b22e89754e2cb69581d68d5;p=lvm2.git makefiles: avoid using # with awk Also awk got annoyed by this \# char sequence which is reported as incorrect, however older rpm builder were failing without this. So let's just try other variant. --- diff --git a/udev/Makefile.in b/udev/Makefile.in index 7bf184947..166a4572a 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 $(AWK) '/\#define DM_DIR/ {print $$3}' $(top_srcdir)/libdm/misc/dm-ioctl.h) +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")