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