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, for test deployments, use on your testmaster
13 # and cut'n paste the export lines before you run make sync
17 SSHCOMMAND:=ssh root@$(PLC)
20 SSHURL:=root@$(PLCHOSTLXC):/vservers/$(GUESTNAME)
21 SSHCOMMAND:=ssh root@$(PLCHOSTLXC) ssh $(GUESTHOSTNAME)
24 SSHURL:=root@$(PLCHOSTVS):/vservers/$(GUESTNAME)
25 SSHCOMMAND:=ssh root@$(PLCHOSTVS) vserver $(GUESTNAME) exec
30 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc'
31 RSYNC_EXCLUDES := --exclude .svn --exclude .git --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
32 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
33 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
37 @echo "sync: I need more info from the command line, e.g."
38 @echo " make sync PLC=boot.planetlab.eu"
39 @echo " make sync PLCHOSTVS=.. GUESTNAME=.."
40 @echo " make sync PLCHOSTLXC=.. GUESTNAME=.. GUESTHOSTNAME=.."
43 +$(RSYNC) planetlab plekit modules $(SSHURL)/var/www/html/
48 $(shell find . -type f -iname "*.js" | grep -v datepicker.js | grep -v raphael),\
49 $(shell python2 jsmin.py < $(file) > $(file).new && mv $(file).new $(file)))
50 @echo "Compressed .js files with jsmin.py"
54 #################### convenience, for debugging only
55 # make +foo : prints the value of $(foo)
56 # make ++foo : idem but verbose, i.e. foo=$(foo)
57 ++%: varname=$(subst +,,$@)
59 @echo "$(varname)=$($(varname))"
60 +%: varname=$(subst +,,$@)