aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/initramfs/hooks/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/initramfs/hooks/Makefile.am')
-rw-r--r--contrib/initramfs/hooks/Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/initramfs/hooks/Makefile.am b/contrib/initramfs/hooks/Makefile.am
new file mode 100644
index 000000000..0c42643f5
--- /dev/null
+++ b/contrib/initramfs/hooks/Makefile.am
@@ -0,0 +1,20 @@
+hooksdir = $(datarootdir)/initramfs-tools/hooks
+
+hooks_SCRIPTS = \
+ zfs
+
+EXTRA_DIST = \
+ $(top_srcdir)/contrib/initramfs/hooks/zfs.in
+
+$(hooks_SCRIPTS):%:%.in
+ -$(SED) -e 's,@sbindir\@,$(sbindir),g' \
+ -e 's,@sysconfdir\@,$(sysconfdir),g' \
+ -e 's,@udevdir\@,$(udevdir),g' \
+ -e 's,@udevruledir\@,$(udevruledir),g' \
+ $< >'$@'
+
+clean-local::
+ -$(RM) $(hooks_SCRIPTS)
+
+distclean-local::
+ -$(RM) $(hooks_SCRIPTS)