3 find . '(' -name '*.php' -o -name '*.js' -o -name '*.module' -o -name '*.css' -o -name Makefile ')' | xargs etags
8 # 2 forms are supported
9 # (*) if your plc root context has direct ssh access:
10 # make sync PLC=private.one-lab.org
11 # (*) otherwise, entering through the root context
12 # make sync PLCHOST=testbox1.inria.fr GUEST=vplc03.inria.fr
16 SSHURL:=root@$(PLCHOST):/vservers/$(GUEST)
17 SSHCOMMAND:=ssh root@$(PLCHOST) vserver $(GUEST)
22 SSHCOMMAND:=ssh root@$(PLC)
25 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc'
26 RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
27 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
28 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
32 @echo "sync: You must define, either PLC, or PLCHOST & GUEST, on the command line"
33 @echo " e.g. make sync PLC=private.one-lab.org"
34 @echo " or make sync PLCHOST=testbox1.inria.fr GUEST=vplc03.inria.fr"
37 +$(RSYNC) planetlab modules $(SSHURL)/var/www/html/
40 #################### convenience, for debugging only
41 # make +foo : prints the value of $(foo)
42 # make ++foo : idem but verbose, i.e. foo=$(foo)
43 ++%: varname=$(subst +,,$@)
45 @echo "$(varname)=$($(varname))"
46 +%: varname=$(subst +,,$@)