summaryrefslogtreecommitdiffstats
path: root/contrib/initramfs/hooks/Makefile.am
blob: c866b4fb6cd7ae3dd4633ec7d342d7fc6bbf572d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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' \
		-e 's,@mounthelperdir\@,$(mounthelperdir),g' \
		$< >'$@'

clean-local::
	-$(RM) $(hooks_SCRIPTS)

distclean-local::
	-$(RM) $(hooks_SCRIPTS)