]> git.proxmox.com Git - mirror_spl.git/blobdiff - module/Makefile.in
Support custom build directories
[mirror_spl.git] / module / Makefile.in
index caa403228985fd48335b415bb1a2329cc6a2a868..70a33ec1438be663325fc4d464cf83b5b1856de8 100644 (file)
@@ -12,23 +12,23 @@ clean:
        if [ -f Module.markers ]; then $(RM) Module.markers; fi
 
 modules_install:
-       # Install the kernel modules
+       @# Install the kernel modules
        $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
                INSTALL_MOD_PATH=$(DESTDIR) \
                INSTALL_MOD_DIR=addon/spl $@
-       find ${DESTDIR}/lib/modules/ -name 'modules.*' | xargs ${RM}
-       sysmap=${DESTDIR}/boot/System.map-@LINUX_VERSION@; \
+       find $(DESTDIR)/lib/modules/ -name 'modules.*' | xargs $(RM)
+       sysmap=$(DESTDIR)/boot/System.map-@LINUX_VERSION@; \
        if [ -f $$sysmap ]; then \
                depmod -ae -F $$sysmap @LINUX_VERSION@; \
        fi
 
 modules_uninstall:
-       # Uninstall the kernel modules
-       $(RM) -R ${DESTDIR}/lib/modules/@LINUX_VERSION@/addon/spl
+       @# Uninstall the kernel modules
+       $(RM) -R $(DESTDIR)/lib/modules/@LINUX_VERSION@/addon/spl
 
 distdir:
        list='$(subdir-m)'; for subdir in $$list; do \
-               (find $$subdir -name '*.c' -o -name '*.h' | \
+               (find @top_srcdir@/module/$$subdir -name '*.c' -o -name '*.h' |\
                 xargs /bin/cp -t $$distdir/$$subdir); \
        done