]> git.pld-linux.org Git - packages/bttv.git/blob - bttv-Makefile.patch
- fixed ) in new line
[packages/bttv.git] / bttv-Makefile.patch
1 diff -urN bttv-0.7.78.orig/driver/Makefile bttv-0.7.78/driver/Makefile
2 --- bttv-0.7.78.orig/driver/Makefile    Mon Sep 10 21:06:48 2001
3 +++ bttv-0.7.78/driver/Makefile Mon Sep 10 21:07:08 2001
4 @@ -3,8 +3,8 @@
5  
6  # where the kernel sources are located
7  RUNNING := /lib/modules/$(shell uname -r)/build
8 -KERNEL_DIR := $(shell if test -d $(RUNNING); then echo $(RUNNING); else echo /usr/src/linux; fi)
9 -#KERNEL_DIR := /usr/src/linux
10 +#KERNEL_DIR := $(shell if test -d $(RUNNING); then echo $(RUNNING); else echo /usr/src/linux; fi)
11 +KERNEL_DIR := /usr/src/linux
12  
13  # kernel version
14  CURRENT        := $(shell ./uts-release $(KERNEL_DIR))
15 @@ -17,9 +17,7 @@
16    KCOMPAT := kcompat24.o
17  endif
18  
19 -MODULE_DIR := $(shell test -d "/lib/modules/$(CURRENT)/kernel" && \
20 -       echo "/lib/modules/$(CURRENT)/kernel/drivers/media/video" ||\
21 -       echo "/lib/modules/$(CURRENT)/misc")
22 +MODULE_DIR := $(DESTDIR)/lib/modules/$(CURRENT)/misc
23  
24  EXTRA_CFLAGS=-g
25  
26 @@ -59,7 +57,7 @@
27  
28  install:
29         strip --strip-debug *.o
30 -       su -c "set -x; mkdir -p $(MODULE_DIR); cp -v $(M_OBJS) $(MX_OBJS) $(MODULE_DIR); depmod -a"
31 +       set -x; mkdir -p $(MODULE_DIR); cp -v $(M_OBJS) $(MX_OBJS) $(MODULE_DIR)
32  
33  clean:
34         -rm -f *.o .*.o.flags *~
This page took 0.071173 seconds and 3 git commands to generate.