another round of rework
[tests.git] / system / Makefile
1 tags:
2         find . '(' -name '*.py' -o -name 'qemu-*' ')' | grep -v '.svn/' | xargs etags
3
4
5 LOCAL_RSYNC_EXCLUDES    := --exclude '*.pyc' --exclude 'arg*' 
6 RSYNC_EXCLUDES          := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
7 RSYNC_COND_DRY_RUN      := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
8 RSYNC                   := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
9
10 sync:
11 ifeq (,$(RSYNC_URL))
12         echo "sync: You must define target host as RSYNC_URL on the command line"
13         echo " e.g. make sync RSYNC_URL=root@testbox1:workdir" ; exit 1
14 else
15         +$(RSYNC) ./ $(RSYNC_URL)/
16 endif