diff options
author | Arvind Sankar <nivedita@alum.mit.edu> | 2020-07-11 19:35:58 -0400 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2020-07-14 17:33:44 -0700 |
commit | 38e2e9ce8327284b2d516874308300aa96102fe9 (patch) | |
tree | 0761f7f696e4da7888a0c99ffb3a91a63ecefdd4 /udev | |
parent | bdb518c13abb9eca8d6f8f1d9e2096dc5163a9e7 (diff) |
Centralize variable substitution
A bunch of places need to edit files to incorporate the configured paths
i.e. bindir, sbindir etc. Move this logic into a common file.
Create arc_summary by copying arc_summary[23] as appropriate at build
time instead of install time.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10559
Diffstat (limited to 'udev')
-rw-r--r-- | udev/rules.d/Makefile.am | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/udev/rules.d/Makefile.am b/udev/rules.d/Makefile.am index 82f13e078..72f47d6f2 100644 --- a/udev/rules.d/Makefile.am +++ b/udev/rules.d/Makefile.am @@ -1,19 +1,8 @@ +include $(top_srcdir)/config/Substfiles.am + udevrule_DATA = \ 69-vdev.rules \ 60-zvol.rules \ 90-zfs.rules -EXTRA_DIST = \ - 69-vdev.rules.in \ - 60-zvol.rules.in \ - 90-zfs.rules.in - -$(udevrule_DATA):%:%.in - -$(SED) -e 's,@bindir\@,$(bindir),g' \ - -e 's,@sbindir\@,$(sbindir),g' \ - -e 's,@udevdir\@,$(udevdir),g' \ - -e 's,@udevruledir\@,$(udevruledir),g' \ - -e 's,@sysconfdir\@,$(sysconfdir),g' \ - $< > '$@' - -CLEANFILES = $(udevrule_DATA) +SUBSTFILES += $(udevrule_DATA) |