add support for migrations with sqlalchemy-migrate
[sfa.git] / Makefile
index 0bacbae..79b71c5 100644 (file)
--- 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
@@ -159,6 +160,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