Skip to content

Commit

Permalink
module/Makefile.in: use relative cp
Browse files Browse the repository at this point in the history
Assuming /bin/cp causes problems on systems where cp is
not in /bin such as NixOS.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Joerg Thalheim <joerg@higgsboson.tk>
Closes #5548
  • Loading branch information
Mic92 authored and behlendorf committed Jan 13, 2017
1 parent 0eef1bd commit e254c8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/Makefile.in
Expand Up @@ -21,9 +21,9 @@ modules:
@# installed devel headers, or they may be in the module
@# subdirectory when building against the spl source tree.
@if [ -f @SPL_OBJ@/@SPL_SYMBOLS@ ]; then \
/bin/cp @SPL_OBJ@/@SPL_SYMBOLS@ .; \
cp @SPL_OBJ@/@SPL_SYMBOLS@ .; \
elif [ -f @SPL_OBJ@/module/@SPL_SYMBOLS@ ]; then \
/bin/cp @SPL_OBJ@/module/@SPL_SYMBOLS@ .; \
cp @SPL_OBJ@/module/@SPL_SYMBOLS@ .; \
else \
echo -e "\n" \
"*** Missing spl symbols ensure you have built the spl:\n" \
Expand Down Expand Up @@ -71,7 +71,7 @@ modules_uninstall:
distdir:
list='$(subdir-m)'; for subdir in $$list; do \
(cd @top_srcdir@/module && find $$subdir -name '*.c' -o -name '*.h' -o -name '*.S' |\
xargs /bin/cp --parents -t $$distdir); \
xargs cp --parents -t $$distdir); \
done

distclean maintainer-clean: clean
Expand Down

0 comments on commit e254c8d

Please sign in to comment.