BUILD_DIR := $(shell pwd)/v4l REPO_PULL := http://linuxtv.org/hg/v4l-dvb REPO_PUSH := ssh://$(CHANGE_LOG_LOGIN)@linuxtv.org/hg/v4l-dvb ifeq ($(EDITOR),) ifeq ($(VISUAL),) EDITOR := vi else EDITOR := $(VISUAL) endif endif all: install: $(MAKE) -C $(BUILD_DIR) install %:: $(MAKE) -C $(BUILD_DIR) $(MAKECMDGOALS) commit cvscommit hgcommit change changes changelog:: whitespace cd $(BUILD_DIR); scripts/cardlist; cd .. v4l/scripts/prep_commit_msg.pl >/tmp/v4l_hg_commit.msg $(EDITOR) /tmp/v4l_hg_commit.msg grep -v ^# /tmp/v4l_hg_commit.msg | hg commit -l - pull update v4l-update:: @echo "Pulling master repository changes" -hg pull -u $(REPO_PULL) hg checkout push:: @echo "Pushing changes to master repository" -hg push $(REPO_PUSH) whitespace: @echo "Cleaning bad whitespaces" @v4l/scripts/strip-trailing-whitespaces.sh | patch -p0