summaryrefslogtreecommitdiff
path: root/v4l2-apps/Makefile
blob: 2bba8fcd44c145df0623c2ea5276f8f84b26669b (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
# Makefile for linuxtv.org v4l2-apps

.PHONY: all distclean 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