X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=db3b5f738e99afe40d2f11476474fd39acb74b9e;hb=ae74d4304bb1033d1fe1dcde29360ad5fe73df63;hp=97d58086b35e62661ac27f9c6e521bc144c47824;hpb=6df8766f97d30a7a60d79659043512a300434fe5;p=sfa.git diff --git a/Makefile b/Makefile index 97d58086..db3b5f73 100644 --- a/Makefile +++ b/Makefile @@ -61,11 +61,35 @@ wsdl-clean: .PHONY: wsdl wsdl-install wsdl-clean -########## -debian: version - $(MAKE) -f Makefile.debian debian -debian.clean: - $(MAKE) -f Makefile.debian 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: @@ -101,12 +125,12 @@ force: ########## # a lot of stuff in the working dir is just noise -scan: +files: @find . -type f | egrep -v '^\./\.|/\.git/|/\.svn/|TAGS|AA-|~$$|egg-info|\.(py[co]|doc|html|pdf|png|svg|out|bak|dg|pickle)$$' tags: - $(MAKE) scan | xargs etags + $(MAKE) files | xargs etags -.PHONY: scan tags +.PHONY: files tags signatures: (cd sfa/methods; grep 'def.*call' *.py > SIGNATURES) @@ -159,6 +183,8 @@ BINS = ./config/sfa-config-tty ./config/gen-sfa-cm-config.py \ synclib: synccheck +$(RSYNC) --relative ./sfa/ --exclude migrations $(SSHURL)/usr/lib\*/python2.\*/site-packages/ +synclibdeb: synccheck + +$(RSYNC) --relative ./sfa/ --exclude migrations $(SSHURL)/usr/share/pyshared/ syncbin: synccheck +$(RSYNC) $(BINS) $(SSHURL)/usr/bin/ syncinit: synccheck @@ -176,6 +202,7 @@ syncmig: # full-fledged sync: synclib syncbin syncinit syncconfig syncrestart +syncdeb: synclibdeb syncbin syncinit syncconfig syncrestart # 99% of the time this is enough syncfast: synclib syncrestart