diff options
Diffstat (limited to 'etc/systemd')
-rw-r--r-- | etc/systemd/system-generators/Makefile.am | 14 | ||||
-rw-r--r-- | etc/systemd/system/Makefile.am | 23 |
2 files changed, 6 insertions, 31 deletions
diff --git a/etc/systemd/system-generators/Makefile.am b/etc/systemd/system-generators/Makefile.am index 1a3efce32..fee88dad8 100644 --- a/etc/systemd/system-generators/Makefile.am +++ b/etc/systemd/system-generators/Makefile.am @@ -1,14 +1,6 @@ +include $(top_srcdir)/config/Substfiles.am + systemdgenerator_SCRIPTS = \ zfs-mount-generator -EXTRA_DIST = \ - zfs-mount-generator.in - -$(systemdgenerator_SCRIPTS): %: %.in - -$(SED) -e 's,@bindir\@,$(bindir),g' \ - -e 's,@runstatedir\@,$(runstatedir),g' \ - -e 's,@sbindir\@,$(sbindir),g' \ - -e 's,@sysconfdir\@,$(sysconfdir),g' \ - $< >'$@' - -CLEANFILES = $(systemdgenerator_SCRIPTS) +SUBSTFILES += $(systemdgenerator_SCRIPTS) diff --git a/etc/systemd/system/Makefile.am b/etc/systemd/system/Makefile.am index 6476fb1bd..c374a52ac 100644 --- a/etc/systemd/system/Makefile.am +++ b/etc/systemd/system/Makefile.am @@ -1,3 +1,5 @@ +include $(top_srcdir)/config/Substfiles.am + systemdpreset_DATA = \ 50-zfs.preset @@ -12,27 +14,8 @@ systemdunit_DATA = \ zfs-volumes.target \ zfs.target -EXTRA_DIST = \ - zfs-zed.service.in \ - zfs-import-cache.service.in \ - zfs-import-scan.service.in \ - zfs-mount.service.in \ - zfs-share.service.in \ - zfs-import.target.in \ - zfs-volume-wait.service.in \ - zfs-volumes.target.in \ - zfs.target.in \ - 50-zfs.preset.in - -$(systemdunit_DATA) $(systemdpreset_DATA):%:%.in - -$(SED) -e 's,@bindir\@,$(bindir),g' \ - -e 's,@runstatedir\@,$(runstatedir),g' \ - -e 's,@sbindir\@,$(sbindir),g' \ - -e 's,@sysconfdir\@,$(sysconfdir),g' \ - $< >'$@' +SUBSTFILES += $(systemdpreset_DATA) $(systemdunit_DATA) install-data-hook: $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)" ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-import.service" - -CLEANFILES = $(systemdunit_DATA) $(systemdpreset_DATA) |