2 # $Id: Makefile 682 2007-07-19 09:00:25Z thierry $
5 ########## make sync PLCHOST=hostname
7 PLCSSH:=root@$(PLCHOST)
10 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc'
11 RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
12 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
13 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
17 echo "sync: You must define target host as PLCHOST on the command line"
18 echo " e.g. make sync PLCHOST=private.one-lab.org" ; exit 1
20 +$(RSYNC) source $(PLCSSH):/plc/root/usr/share/bootmanager/
21 ssh $(PLCSSH) chroot /plc/root service plc start bootmanager
26 find . '(' -name '*.py' -o -name '*.spec' ')' | xargs etags