X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=63e0255a5359bc65ba1ab439059b4dc1a0779ffd;hb=9f5101cfb1e909b41149c3307831681654d0fafb;hp=0bacbae2352ccae3792acf928c3434c0bd2c218f;hpb=6f0a757c5adf47b4d222cec09514dcd688b93457;p=sfa.git diff --git a/Makefile b/Makefile index 0bacbae2..63e0255a 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,7 @@ 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/migrations (cd $(DESTDIR)/usr/bin ; ln -s sfi.py sfi; ln -s sfascan.py sfascan) python-clean: version-clean @@ -134,7 +135,8 @@ RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) --no-owner $(RSYNC_EXCLUDES) 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 \ + ./sfa/server/sfa-start.py \ + ./sfa/importer/sfa-import.py ./sfa/importer/sfa-nuke.py \ $(CLIENTS) synccheck: @@ -159,6 +161,10 @@ synctest: synccheck syncrestart: synccheck $(SSHCOMMAND) exec service sfa restart +syncmig: + +$(RSYNC) ./sfa/storage/migrations $(SSHURL)/usr/share/sfa/ + + # full-fledged sync: synclib syncbin syncinit syncconfig syncrestart # 99% of the time this is enough