summaryrefslogtreecommitdiff
path: root/v4l2-apps/Makefile
blob: 86b5bc2673c2bbeba7a9bb80605497d924e43877 (plain)
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
# Makefile for linuxtv.org v4l2-apps

.PHONY: all distclean clean install

all:: prepare-includes

all clean install::
	$(MAKE) -C libv4l $@
	$(MAKE) -C libv4l2util $@
	$(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