]>
Commit | Line | Data |
---|---|---|
a0aadf56 BB |
1 | subdir-m += spl |
2 | subdir-m += splat | |
3 | ||
0c617c9a BB |
4 | INSTALL=/usr/bin/install |
5 | ||
21006d08 | 6 | modules: |
31b2e0b0 | 7 | $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@ |
a0aadf56 | 8 | |
21006d08 BB |
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 | ||
c5f70460 | 14 | modules_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 | ||
25 | modules_uninstall: | |
a7958f7e BB |
26 | @# Uninstall the kernel modules |
27 | $(RM) -R $(DESTDIR)/lib/modules/@LINUX_VERSION@/addon/spl | |
c5f70460 BB |
28 | |
29 | distdir: | |
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 | ||
35 | distclean maintainer-clean: clean | |
36 | install: modules_install | |
099dc9c2 | 37 | uninstall: modules_uninstall |
c5f70460 | 38 | all: modules |
07d339d4 | 39 | check: |