File: openafs-1.5.8-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 (39 lines) | stat: -rw-r--r-- 1,241 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
# debian/rules dphys-kernel-packages fragment for openafs-1.4.1
# author Neil Franklin, last modification 2006.06.01 Gurkan Sengun

COMPILE_SUBPATH=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
	@# support both SMP and UP versions
	@#   support in each both 2.6 and 2.4 compile tree formats
	@#   libafs-* matches long names
	@if /bin/grep --quiet CONFIG_SMP=y $(KSRC)/.config ; then \
	   if [ -d i386_linux26 ] ; then \
	     /bin/cp -p i386_linux26/$(COMPILE_SUBPATH)/libafs-*.ko \
	         $(INSTALL_PATH)/openafs.mp.ko ; \
	   else \
	     /bin/cp -p i386_linux24/$(COMPILE_SUBPATH)/libafs-*.o \
	         $(INSTALL_PATH)/openafs.mp.o ; \
	   fi \
	 else \
	   if [ -d i386_linux26 ] ; then \
	     /bin/cp -p i386_linux26/$(COMPILE_SUBPATH)/libafs-*.ko \
	         $(INSTALL_PATH)/openafs.ko ; \
	   else \
	     /bin/cp -p i386_linux24/$(COMPILE_SUBPATH)/libafs-*.o \
	         $(INSTALL_PATH)/openafs.o ; \
	   fi \
	 fi

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