mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-15 03:41:28 +03:00
![Arvind Sankar](/assets/img/avatar_default.png)
There's no need to specify the srcdir explicitly in _HEADERS and EXTRA_DIST. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10493
38 lines
901 B
Makefile
38 lines
901 B
Makefile
initdir = $(DEFAULT_INIT_DIR)
|
|
init_SCRIPTS = zfs-import zfs-mount zfs-share zfs-zed
|
|
|
|
initconfdir = $(DEFAULT_INITCONF_DIR)
|
|
|
|
EXTRA_DIST = \
|
|
zfs-share.in \
|
|
zfs-import.in \
|
|
zfs-mount.in \
|
|
zfs-zed.in
|
|
|
|
$(init_SCRIPTS):%:%.in Makefile
|
|
-(if [ -e /etc/debian_version ]; then \
|
|
NFS_SRV=nfs-kernel-server; \
|
|
else \
|
|
NFS_SRV=nfs; \
|
|
fi; \
|
|
if [ -e /sbin/openrc-run ]; then \
|
|
SHELL=/sbin/openrc-run; \
|
|
else \
|
|
SHELL=/bin/sh; \
|
|
fi; \
|
|
$(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,@initconfdir\@,$(initconfdir),g' \
|
|
-e 's,@initdir\@,$(initdir),g' \
|
|
-e 's,@runstatedir\@,$(runstatedir),g' \
|
|
-e "s,@SHELL\@,$$SHELL,g" \
|
|
-e "s,@NFS_SRV\@,$$NFS_SRV,g" \
|
|
$< >'$@'; \
|
|
chmod +x '$@')
|
|
|
|
CLEANFILES = $(init_SCRIPTS)
|