define PLC_MAIL_FROM_ADDRESS
[tests.git] / system / Makefile
1 tags:
2         find . '(' -name '*.py' -o -name 'qemu-*' ')' | grep -v '.git/' | xargs etags
3
4 .PHONY: tags
5
6 ####################
7
8 TESTMASTER ?= testmaster.onelab.eu
9
10 ########## make sync TESTMASTER=hostname BUILD=vservername
11 ifdef BUILD
12 PLCSSH:=root@$(TESTMASTER):$(BUILD)
13 endif
14
15 LOCAL_RSYNC_EXCLUDES    := --exclude '*.pyc' --exclude 'arg*' --exclude LocalTestResources.py
16 RSYNC_EXCLUDES          := --exclude .git --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 TESTMASTER and BUILD on the command line"
23         echo " e.g. make sync TESTMASTER=testmaster.onelab.eu BUILD=2009.07.10--1l-f8-32" ; exit 1
24 else
25         +$(RSYNC) ./ $(PLCSSH)
26 endif