X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=56480418c64a9ee0b45894281a9184c40e2414d6;hb=e1f1050c332744ddb2b8bf1f771eb8beeebfca3b;hp=52a7f7a4b4cb4b4c92e0b8732f94ec24ae2b49c7;hpb=70be23441bac13cd80346420d262ba93a53ec083;p=nodemanager.git diff --git a/Makefile b/Makefile index 52a7f7a..5648041 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,35 @@ clean: .PHONY: all install clean -########## +#################### debian-related +# This is called from the build with the following variables set +# (see build/Makefile and target_debian) +# (.) RPMTARBALL +# (.) RPMVERSION +# (.) RPMRELEASE +# (.) RPMNAME +DEBVERSION=$(RPMVERSION).$(RPMRELEASE) +DEBTARBALL=../$(RPMNAME)_$(DEBVERSION).orig.tar.bz2 +DATE=$(shell date -u +"%a, %d %b %Y %T") +force: + +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 --set-envvar PREFIX=/usr -uc -us -b + +debian.clean: + $(MAKE) -f debian/rules clean + rm -rf build/ MANIFEST ../*.tar.gz ../*.dsc ../*.build + find . -name '*.pyc' -delete + +################################################## devel-oriented tags: (find . '(' -name '*.py' -o -name '*.c' -o -name '*.spec' ')' ; ls initscripts/*) | xargs etags