btrc & btrd
[m6w6/btr] / share / btr / source / cvs.mk
1 BTR_SOURCE_CLEAN=false
2 CVSROOT=$(shell cut -d'\#' -f1 <<<$(BTR_SOURCE_ARGS))
3 CVS_MOD=$(shell cut -d'\#' -f2 -s <<<$(BTR_SOURCE_ARGS))
4 CVS_RSH=ssh
5
6 export
7
8 ifeq ($(value BTR_QUIET_FLAG), -q)
9 override BTR_QUIET_FLAG = -Q
10 endif
11
12 .PHONY: all clean login
13 .SUFFIXES:
14
15 all: $(BTR_BRANCH_DIR) clean
16 $(SAY) "Updating $(BTR_BRANCH)..."
17 cd $(BTR_BRANCH_DIR) && \
18 cvs $(BTR_QUIET_FLAG) -z3 update -RPd;
19
20 clean: $(BTR_BRANCH_DIR)
21 if $(BTR_SOURCE_CLEAN); \
22 then \
23 cd $(BTR_BRANCH_DIR) && \
24 cvs $(BTR_QUIET_FLAG) -z3 update -CRPd; \
25 fi;
26
27 $(BTR_BRANCH_DIR):
28 $(SAY) "Performing checkout of $(CVS_MOD) from $(CVSROOT)..."
29 cvs $(BTR_QUIET_FLAG) checkout -RP -r $(BTR_BRANCH) -d $(BTR_BRANCH_DIR) $(CVS_MOD)
30
31 # vim: noet