X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=781a85d077bbc95fdc3fd8bd0d10d841a18d43c3;hb=8f53b9c01aec0d3a783b17b1752a72ad621a2868;hp=961fc51bec3a7df6d5ffbe622dca8d6c1167f0f6;hpb=0bf9b6554e1a129b4d3acecc8fc58589081547de;p=myslice.git diff --git a/Makefile b/Makefile index 961fc51b..781a85d0 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,35 @@ install: --install-scripts=$(DESTDIR)/$(datadir)/myslice \ --install-data=$(DESTDIR)/$(datadir)/myslice +#################### +# general stuff +DATE=$(shell date -u +"%a, %d %b %Y %T") + +# 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 + +debian: static templates 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 + #################### third-party layout is kind of special # because we have differents versions, and also we @@ -40,6 +69,8 @@ THIRD-PARTY-RESOURCES += $(shell ls third-party/jquery/js/jquery.min.js) # for storing the visible status of plugins THIRD-PARTY-RESOURCES += $(shell ls third-party/jquery-html5storage/jquery.html5storage.js) THIRD-PARTY-RESOURCES += $(shell ls third-party/jquery-html5storage/jquery.html5storage.min.js) +# creating queries uuids on the fly +THIRD-PARTY-RESOURCES += $(shell ls third-party/uuid/Math.uuid.js) # spin comes in plain or min, + the jquery plugin, and our own settings THIRD-PARTY-RESOURCES += $(shell ls third-party/spin/*.js) # used in QueryCode