summaryrefslogtreecommitdiffstats
path: root/contrib/dracut/90zfs/Makefile.am
blob: 5ce757cdf33b4174a626e7cdc3a96443673162d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pkgdracutdir = $(dracutdir)/modules.d/90zfs
pkgdracut_SCRIPTS = \
	export-zfs.sh \
	module-setup.sh \
	mount-zfs.sh \
	parse-zfs.sh \
	zfs-generator.sh \
	zfs-load-key.sh \
	zfs-needshutdown.sh \
	zfs-lib.sh

pkgdracut_DATA = \
	zfs-env-bootfs.service \
	zfs-snapshot-bootfs.service \
	zfs-rollback-bootfs.service

EXTRA_DIST = \
	export-zfs.sh.in \
	module-setup.sh.in \
	mount-zfs.sh.in \
	parse-zfs.sh.in \
	zfs-generator.sh.in \
	zfs-load-key.sh.in \
	zfs-needshutdown.sh.in \
	zfs-lib.sh.in \
	zfs-env-bootfs.service.in \
	zfs-snapshot-bootfs.service.in \
	zfs-rollback-bootfs.service.in

$(pkgdracut_SCRIPTS) $(pkgdracut_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' \
		-e 's,@systemdunitdir\@,$(systemdunitdir),g' \
		-e 's,@mounthelperdir\@,$(mounthelperdir),g' \
		$< >'$@'

# Double-colon rules are allowed; there are multiple independent definitions.
distclean-local::
	-$(RM) $(pkgdracut_SCRIPTS) $(pkgdracut_DATA)