mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
bdb518c13a
commit
38e2e9ce83
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user