aboutsummaryrefslogtreecommitdiffstats
path: root/module/Makefile.in
blob: eed81f64eaa0396e7f09b88e4048b1748e4bb802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
subdir-m += spl
subdir-m += splat

INSTALL=/usr/bin/install

modules:
	$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@

clean:
	$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
	if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi
	if [ -f Module.markers ]; then $(RM) Module.markers; fi

modules_install:
	$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
		INSTALL_MOD_PATH=$(DESTDIR) \
		INSTALL_MOD_DIR=addon/spl $@
	find ${DESTDIR}/lib/modules/ -name 'modules.*' | xargs ${RM}

distdir:
	list='$(subdir-m)'; for subdir in $$list; do \
		(find $$subdir -name '*.c' -o -name '*.h' | \
		 xargs /bin/cp -t $$distdir/$$subdir); \
	done

distclean maintainer-clean: clean
install: modules_install
all: modules
check: