# refresh tags tags: find . '(' -name '*.php' -o -name '*.js' -o -name '*.module' -o -name '*.css' -o -name Makefile ')' | xargs etags .PHONY: tags ########## make sync PLCHOST=hostname ifdef PLCHOST PLCSSH:=root@$(PLCHOST) endif LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES) RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,) RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES) sync: ifeq (,$(PLCSSH)) echo "sync: You must define target host as PLCHOST on the command line" echo " e.g. make sync PLCHOST=private.one-lab.org" ; exit 1 else +$(RSYNC) planetlab modules $(PLCSSH):/plc/root/var/www/html/ endif