X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=485f10a30f88a04c01a30e9ee95569e2b9e6a0ec;hb=31cc4fa991896f000abb106916662923f37bc3a6;hp=23c1be31d5762f5c578e479061ee7955595cb0c7;hpb=df86e084563ff7d7483ccde93b87e21aa71729cc;p=sfa.git diff --git a/Makefile b/Makefile index 23c1be31..485f10a3 100644 --- a/Makefile +++ b/Makefile @@ -58,36 +58,6 @@ wsdl-clean: .PHONY: wsdl wsdl-install wsdl-clean -######################################## debian packaging -# The 'debian' target is called from the build with the following variables set -# (see build/Makefile and target_debian) -# (.) RPMTARBALL -# (.) RPMVERSION -# (.) RPMRELEASE -# (.) RPMNAME -# -PROJECT=$(RPMNAME) -DEBVERSION=$(RPMVERSION).$(RPMRELEASE) -DEBTARBALL=../$(PROJECT)_$(DEBVERSION).orig.tar.bz2 - -DATE=$(shell date -u +"%a, %d %b %Y %T") - -debian: debian/changelog debian.source debian.package - -debian/changelog: debian/changelog.in - sed -e "s|@VERSION@|$(DEBVERSION)|" -e "s|@DATE@|$(DATE)|" debian/changelog.in > debian/changelog - -debian.source: force - rsync -a $(RPMTARBALL) $(DEBTARBALL) - -debian.package: - debuild -uc -us -b - -debian.clean: - $(MAKE) -f debian/rules clean - rm -rf build/ MANIFEST ../*.tar.gz ../*.dsc ../*.build - find . -name '*.pyc' -delete - ########## tests-install: mkdir -p $(DESTDIR)/usr/share/sfa/tests @@ -217,7 +187,7 @@ RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) --no-owner $(RSYNC_EXCLUDES) CLIENTS = $(shell ls clientbin/*.py) -BINS = ./config/sfa-config-tty ./config/gen-sfa-cm-config.py \ +BINS = ./config/sfa-config-tty ./systemd/sfa-setup.sh \ ./sfa/server/sfa-start.py \ ./clientbin/sfaadmin.py \ $(CLIENTS) @@ -232,23 +202,25 @@ syncmigrations: +$(RSYNC) ./sfa/storage/migrations/versions/*.py $(SSHURL)/usr/share/sfa/migrations/versions/ syncbin: synccheck +$(RSYNC) $(BINS) $(SSHURL)/usr/bin/ -syncinit: synccheck - +$(RSYNC) ./init.d/sfa $(SSHURL)/etc/init.d/ +syncservices: synccheck + +$(RSYNC) ./systemd/*.service $(SSHURL)/lib/systemd/system + +$(RSYNC) ./systemd/sfa-setup.sh $(SSHURL)/usr/bin syncconfig: +$(RSYNC) ./config/default_config.xml $(SSHURL)/etc/sfa/ synctest: synccheck +$(RSYNC) ./tests/ $(SSHURL)/root/tests-sfa syncrestart: synccheck -$(SSHCOMMAND) systemctl --system daemon-reload - $(SSHCOMMAND) service sfa restart + $(SSHCOMMAND) systemctl restart sfa-db + $(SSHCOMMAND) systemctl restart sfa-aggregate syncmig: +$(RSYNC) ./sfa/storage/migrations $(SSHURL)/usr/share/sfa/ # full-fledged -sync: synclib syncbin syncinit syncconfig syncrestart -syncdeb: synclibdeb syncbin syncinit syncconfig syncrestart +sync: synclib syncbin syncservices syncconfig syncrestart +syncdeb: synclibdeb syncbin syncservices syncconfig syncrestart # 99% of the time this is enough syncfast: synclib syncrestart