X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=Makefile;h=93c808b9d6f972dce2ee1f7a7d5a8173d90b134d;hp=f02020425a912732b43be50dc49e8b42bd4cc0e2;hb=c03f386095ce337626738f3dbde790a7266f40a0;hpb=771f893f2f1fcba36991bb6d88e8dc74b54ffd15 diff --git a/Makefile b/Makefile index f0202042..93c808b9 100644 --- a/Makefile +++ b/Makefile @@ -89,9 +89,13 @@ sfa/methods/__init__.py: force: ########## +# a lot of stuff in the working dir is just noise +scan: + @find . -type f | egrep -v '^\./\.|/\.git/|/\.svn/|TAGS|AA-|~$$|egg-info|\.(py[co]|doc|html|pdf|png|svg|out|bak|xml|dg)$$' tags: - find . -type f | egrep -v '/\.git/|/\.svn/|TAGS|AA-|~$$|\.(py[co]|doc|html|pdf|png|svg|out|bak|xml|dg)$$' | xargs etags -.PHONY: tags + $(MAKE) scan | xargs etags + +.PHONY: scan tags signatures: (cd sfa/methods; grep 'def.*call' *.py > SIGNATURES) @@ -123,13 +127,11 @@ RSYNC_EXCLUDES := --exclude .svn --exclude .git --exclude '*~' --exclude TAGS $ RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,) RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) --no-owner $(RSYNC_EXCLUDES) -CLIENTS = sfi.py getNodes.py getRecord.py setRecord.py \ -sfiAddAttribute.py sfiAddSliver.py sfiDeleteAttribute.py sfiDeleteSliver.py sfiListNodes.py \ -sfiListSlivers.py sfadump.py +CLIENTS = $(shell ls sfa/clientbin/*.py) BINS = ./config/sfa-config-tty ./config/gen-sfa-cm-config.py \ ./sfa/importer/sfa-import-plc.py ./sfa/importer/sfa-nuke-plc.py ./sfa/server/sfa-start.py \ - $(foreach client,$(CLIENTS),./sfa/client/$(client)) + $(CLIENTS) sync: ifeq (,$(SSHURL)) @@ -152,5 +154,9 @@ fastsync: +$(RSYNC) ./sfa/ $(SSHURL)/usr/lib\*/python2.\*/site-packages/sfa/ $(SSHCOMMAND) exec service sfa restart -.PHONY: sync +clientsync: + +$(RSYNC) $(BINS) $(SSHURL)/usr/bin/ + +.PHONY: sync fastsync clientsync + ##########