Silent following warning;
[bootmanager.git] / Makefile
1
2 # $Id: Makefile 682 2007-07-19 09:00:25Z thierry $
3 #
4
5 ########## make sync PLCHOST=hostname
6 ########## make sync PLCHOST=hostname
7 ifdef PLCHOST
8 ifdef VSERVER
9 PLCSSH:=root@$(PLCHOST):/vservers/$(VSERVER)
10 endif
11 endif
12
13 LOCAL_RSYNC_EXCLUDES    := --exclude '*.pyc' --exclude debug_root_ssh_key
14 RSYNC_EXCLUDES          := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
15 RSYNC_COND_DRY_RUN      := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
16 RSYNC                   := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
17
18 sync:
19 ifeq (,$(PLCSSH))
20         echo "sync: You must define PLCHOST and VSERVER on the command line"
21         echo " e.g. make sync PLCHOST=private.one-lab.org VSERVER=myplc01" ; exit 1
22 else
23         +$(RSYNC) source $(PLCSSH)/usr/share/bootmanager/
24         ssh root@$(PLCHOST) vserver $(VSERVER) exec service plc start bootmanager
25 endif
26
27 ##########
28 tags:
29         find . '(' -name '*.py' -o -name '*.spec' ')' | xargs etags
30
31 .PHONY: tags