clean_all_sites performs deep cleaning - useful when used in conjunction with the...
[tests.git] / system / Makefile
1 tags:
2         find . '(' -name '*.py' -o -name 'qemu-*' ')' | grep -v '.svn/' | xargs etags
3
4 .PHONY: tags
5
6 ####################
7
8 ########## make sync PLCHOST=hostname VSERVER=vservername
9 ifdef PLCHOST
10 ifdef BUILDNAME
11 PLCSSH:=root@$(PLCHOST):$(BUILDNAME)
12 endif
13 endif
14
15 LOCAL_RSYNC_EXCLUDES    := --exclude '*.pyc' --exclude 'arg*'
16 RSYNC_EXCLUDES          := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
17 RSYNC_COND_DRY_RUN      := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
18 RSYNC                   := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
19
20 sync:
21 ifeq (,$(PLCSSH))
22         echo "sync: You must define PLCHOST and BUILDNAME on the command line"
23         echo " e.g. make sync PLCHOST=private.one-lab.org BUILDNAME=" ; exit 1
24 else
25         +$(RSYNC) ./ $(PLCSSH)
26 endif