X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=ef3e497d3ef735f67bb0a9b4a0d6a3aca7c7737c;hb=c6884b76347be620a7b2aed427291a2e49b53850;hp=d6ecaad2a2a9b6c8478d3e07896d956136af2c5d;hpb=43da0d380f85e5e8c83641fd145333721b825096;p=sfa.git diff --git a/Makefile b/Makefile index d6ecaad2..ef3e497d 100644 --- a/Makefile +++ b/Makefile @@ -30,10 +30,15 @@ sfa/util/version.py: sfa/util/version.py.in xmlbuilder-install: cd xmlbuilder-0.9 && python setup.py install --root=$(DESTDIR) && cd - - + rm -rf $(DESTDIR)/usr/lib*/python*/site-packages/*egg-info + +# postinstall steps - various cleanups and tweaks for a nicer rpm python-install: python setup.py install --root=$(DESTDIR) chmod 444 $(DESTDIR)/etc/sfa/default_config.xml + rm -rf $(DESTDIR)/usr/lib*/python*/site-packages/*egg-info + rm -rf $(DESTDIR)/usr/lib*/python*/site-packages/sfa/storage/sfa.sql + (cd $(DESTDIR)/usr/bin ; ln -s sfi.py sfi; ln -s sfascan.py sfascan) python-clean: version-clean python setup.py clean @@ -89,9 +94,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 +132,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))