diff options
author | Kyle Fuller <[email protected]> | 2011-08-09 22:39:47 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-08-19 16:26:13 -0700 |
commit | f0102d6e75d51b8d92624ba054a3fa54c807fb7f (patch) | |
tree | aba7fe5f78f610a46dcd32acb56aef51ce056742 /dracut/90zfs/Makefile.am | |
parent | 146cde8f4acd52d258ba80817dd1134702a91954 (diff) |
Make dracut module-setup.sh an autoconf config file
This ensures that module-setup.sh script will always be able to
install the required dracut components regardless of how the zfs
package was configured.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'dracut/90zfs/Makefile.am')
-rw-r--r-- | dracut/90zfs/Makefile.am | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/dracut/90zfs/Makefile.am b/dracut/90zfs/Makefile.am index 44aaf61b2..411206178 100644 --- a/dracut/90zfs/Makefile.am +++ b/dracut/90zfs/Makefile.am @@ -1,23 +1,21 @@ pkgdracutdir = $(datadir)/dracut/modules.d/90zfs -dist_pkgdracut_SCRIPTS = \ +pkgdracut_SCRIPTS = \ $(top_srcdir)/dracut/90zfs/module-setup.sh \ $(top_srcdir)/dracut/90zfs/mount-zfs.sh \ $(top_srcdir)/dracut/90zfs/parse-zfs.sh -all: - @list='$(dist_pkgdracut_SCRIPTS)'; \ - for file in $$list; do \ - link=$$(basename $$file); \ - if [ ! -e $$link ]; then \ - $(LN_S) $$file $$link; \ - fi \ - done +EXTRA_DIST = \ + $(top_srcdir)/dracut/90zfs/module-setup.sh.in \ + $(top_srcdir)/dracut/90zfs/mount-zfs.sh.in \ + $(top_srcdir)/dracut/90zfs/parse-zfs.sh.in -clean: - @list='$(dist_pkgdracut_SCRIPTS)'; \ - for file in $$list; do \ - link=$$(basename $$file); \ - if [ -L $$link ]; then \ - $(RM) $$link; \ - fi \ - done +$(pkgdracut_SCRIPTS): + -$(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' \ + '[email protected]' >'$@' + +distclean-local:: + -$(RM) $(pkgdracut_SCRIPTS) |