X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=bda9ca83767aa527f80af1083ade3c5a0e153d3e;hb=a022cfa6b67c598df3932404ac949853f708ba46;hp=701c3295ff49b418b5bb9d335eaa91a2e483f1a7;hpb=5c66c9e41f99b9d77f1698a187b60af127159b75;p=sfa.git diff --git a/Makefile b/Makefile index 701c3295..bda9ca83 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|~$$|\.(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,7 +127,7 @@ 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 \ +CLIENTS = sfi.py sfascan.py getNodes.py getRecord.py setRecord.py \ sfiAddAttribute.py sfiAddSliver.py sfiDeleteAttribute.py sfiDeleteSliver.py sfiListNodes.py \ sfiListSlivers.py sfadump.py @@ -141,8 +145,9 @@ else +$(RSYNC) ./sfa/ $(SSHURL)/usr/lib\*/python2.\*/site-packages/sfa/ +$(RSYNC) ./tests/ $(SSHURL)/root/tests-sfa +$(RSYNC) $(BINS) $(SSHURL)/usr/bin/ - +$(RSYNC) ./sfa/init.d/sfa $(SSHURL)/etc/init.d/ + +$(RSYNC) ./init.d/sfa $(SSHURL)/etc/init.d/ +$(RSYNC) ./config/default_config.xml $(SSHURL)/etc/sfa/ + +$(RSYNC) ./sfa/storage/sfa.sql $(SSHURL)/usr/share/sfa/ $(SSHCOMMAND) exec service sfa restart endif @@ -151,5 +156,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 + ##########