File: 3w-9xxx.rules

package info (click to toggle)
dphys-kernel-packages 20061027-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 252 kB
  • ctags: 11
  • sloc: sh: 802; makefile: 83
file content (27 lines) | stat: -rw-r--r-- 685 bytes parent folder | download
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
# debian/rules dphys-kernel-packages fragment for 3w-9xxx

INSTALL_PATH=$(DESTDIR)/lib/modules/$(KVERS)/kernel/drivers/scsi

configure-module:
	@/bin/sed -e '/^SRCPATH.*/s@@SRCPATH =$(KSRC)@' \
	     Makefile.oth > Makefile

build-module:
	@if grep --quiet CONFIG_SMP=y $(KSRC)/.config ; then \
	   /usr/bin/make smp ; \
	 else \
	   /usr/bin/make up ; \
	 fi

install-module:
	@if [ ! -d $(INSTALL_PATH) ] ; then \
	   /bin/mkdir -p $(INSTALL_PATH) ; \
	 fi
	@if grep --quiet CONFIG_SMP=y $(KSRC)/.config ; then \
	   /bin/cp -p 3w-9xxx.smp $(INSTALL_PATH)/3w-9xxx.o ; \
	 else \
	   /bin/cp -p 3w-9xxx.o $(INSTALL_PATH) ; \
	 fi

clean-module:
	@/bin/rm -f $(INSTALL_PATH)/3w-9xxx.o