summaryrefslogtreecommitdiff
path: root/v4l2-apps/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-08-30 07:06:39 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-08-30 07:06:39 -0300
commit9bcda4998b34e63d38d390763cdbda7706f033d9 (patch)
tree963ec6a411f4d3c6393a6477d89613290989c8aa /v4l2-apps/Makefile
parentd0c6f4ec6b9d0e37d63cfc2e25bd415f305a0be8 (diff)
parent67e93560aecd64287dd726434d034631f33fa158 (diff)
downloadmediapointer-dvb-s2-9bcda4998b34e63d38d390763cdbda7706f033d9.tar.gz
mediapointer-dvb-s2-9bcda4998b34e63d38d390763cdbda7706f033d9.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l2-apps/Makefile')
-rw-r--r--v4l2-apps/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/v4l2-apps/Makefile b/v4l2-apps/Makefile
index 550473435..2bba8fcd4 100644
--- a/v4l2-apps/Makefile
+++ b/v4l2-apps/Makefile
@@ -1,11 +1,24 @@
# Makefile for linuxtv.org v4l2-apps
-.PHONY: all clean install
+.PHONY: all distclean clean install
-all clean install:
+all:: prepare-includes
+
+all clean install::
$(MAKE) -C lib $@
$(MAKE) -C util $@
$(MAKE) -C test $@
%:
make -C .. $(MAKECMDGOALS)
+
+clean::
+ -$(RM) -rf include
+
+distclean:: clean
+
+prepare-includes:
+ -if [ ! -d include ]; then \
+ cp -r ../linux/include include ; \
+ ../v4l/scripts/headers_convert.pl `find include -type f` ; \
+ fi