File: openafs-1.4.0-src.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 (25 lines) | stat: -rw-r--r-- 702 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
# debian/rules dphys-kernel-packages fragment for openafs-1.4.0

COMPILE_PATH=i386_linux24/dest/root.client/usr/vice/etc/modload
INSTALL_PATH=$(DESTDIR)/lib/modules/$(KVERS)/fs

configure-module:
	@./configure --with-linux-kernel-headers=$(KSRC) --enable-littleendian

build-module:
	@/usr/bin/make dest

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 $(COMPILE_PATH)/libafs-$(KVERS).mp.o \
	       $(INSTALL_PATH)/openafs.mp.o ; \
	 else \
	   /bin/cp -p $(COMPILE_PATH)/libafs-$(KVERS).o \
	       $(INSTALL_PATH)/openafs.o ; \
	 fi

clean-module:
	@/bin/rm -rf $(INSTALL_PATH)