]> git.proxmox.com Git - mirror_zfs.git/blob - module/Makefile.in
Support custom build directories
[mirror_zfs.git] / module / Makefile.in
1 subdir-m += spl
2 subdir-m += splat
3
4 INSTALL=/usr/bin/install
5
6 modules:
7 $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
8
9 clean:
10 $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
11 if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi
12 if [ -f Module.markers ]; then $(RM) Module.markers; fi
13
14 modules_install:
15 @# Install the kernel modules
16 $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
17 INSTALL_MOD_PATH=$(DESTDIR) \
18 INSTALL_MOD_DIR=addon/spl $@
19 find $(DESTDIR)/lib/modules/ -name 'modules.*' | xargs $(RM)
20 sysmap=$(DESTDIR)/boot/System.map-@LINUX_VERSION@; \
21 if [ -f $$sysmap ]; then \
22 depmod -ae -F $$sysmap @LINUX_VERSION@; \
23 fi
24
25 modules_uninstall:
26 @# Uninstall the kernel modules
27 $(RM) -R $(DESTDIR)/lib/modules/@LINUX_VERSION@/addon/spl
28
29 distdir:
30 list='$(subdir-m)'; for subdir in $$list; do \
31 (find @top_srcdir@/module/$$subdir -name '*.c' -o -name '*.h' |\
32 xargs /bin/cp -t $$distdir/$$subdir); \
33 done
34
35 distclean maintainer-clean: clean
36 install: modules_install
37 uninstall: modules_uninstall
38 all: modules
39 check: