aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: fbc78e4386b0a1963a5f0ea1eb2235330e01caa6 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
BUILD_DIR := $(shell pwd)/v4l
TMP ?= /tmp
REPO_PULL := http://linuxtv.org/hg/v4l-dvb

ifeq ($(EDITOR),)
  ifeq ($(VISUAL),)
	EDITOR := vi
  else
	EDITOR := $(VISUAL) -w
  endif
endif

all:

install:
	$(MAKE) -C $(BUILD_DIR) install

# Hmm, .PHONY does not work with wildcard rules :-(
SPECS = media-specs

.PHONY: $(SPECS)

$(SPECS):
	$(MAKE) -C $(BUILD_DIR) $(MAKECMDGOALS)

%::
	$(MAKE) -C $(BUILD_DIR) $(MAKECMDGOALS)

commit cvscommit hgcommit change changes changelog:: whitespace
	@cd $(BUILD_DIR); scripts/cardlist; scripts/do_commit.sh $(EDITOR) $(TMP)/v4l_hg_whitespace; cd ..

qrefresh: Q=q
qrefresh:: whitespace
	cd $(BUILD_DIR); scripts/cardlist; cd ..
	v4l/scripts/prep_commit_msg.pl -q $(TMP)/v4l_hg_whitespace > \
		$(TMP)/v4l_hg_commit.msg
	$(EDITOR) $(TMP)/v4l_hg_commit.msg
	grep -v '^#' $(TMP)/v4l_hg_commit.msg | hg qrefresh -g -l -

whitespace whitespaces:
	@echo "Cleaning bad whitespaces"
	@v4l/scripts/strip-trailing-whitespaces.sh $(Q)fast | \
		tee $(TMP)/v4l_hg_whitespace | patch -p0

download untar::
	$(MAKE) -C linux/ $(MAKECMDGOALS)

dir::
	$(MAKE) -C linux/ $(MAKECMDGOALS) DIR="../$(DIR)"

Privacy Policy