summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 807a39a91..030c458f1 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -155,11 +155,25 @@ install::
-rm $(addprefix $(KDIR26)/video/saa7134/, $(addsuffix .gz,$(inst_saa7134))) 2>/dev/null
-install -m 644 -c $(inst_saa7134) $(KDIR26)/video/saa7134
+ -rm -r $(DEST)
+
/sbin/depmod -a
v4l_install::
strip --strip-debug $(inst-m)
- -su -c "mkdir -p $(DEST); cp -v $(inst-m) $(DEST); depmod -a"
+ -rm $(addprefix $(KDIR26)/common/, $(inst_common)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/common/, $(addsuffix .gz,$(inst_common))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/dvb/frontends/, $(inst_frontends)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/dvb/frontends/, $(addsuffix .gz,$(inst_frontends))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/, $(inst_video)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/, $(addsuffix .gz,$(inst_video))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/cx88/, $(inst_cx88)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/cx88/, $(addsuffix .gz,$(inst_cx88))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/saa7134/, $(inst_saa7134)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/saa7134/, $(addsuffix .gz,$(inst_saa7134))) 2>/dev/null
+ -mkdir -p $(DEST)
+ -cp -v $(inst-m) $(DEST)
+ /sbin/depmod -a
clean::
-rm -f *~ *.o *.ko *.mod.c