Makefile: add a package target

This commit is contained in:
Benjamin Dauvergne 2015-02-06 16:41:06 +01:00
parent a8e3e10dfd
commit f7ebe02339
1 changed files with 12 additions and 0 deletions

View File

@ -48,3 +48,15 @@ name:
fullname:
@(echo $(FULLNAME))
package:
make dist-bzip2
rm -rf debian
rm -rf sdist/$(FULLNAME)
git checkout debian debian
cd sdist; mv $(FULLNAME).tar.bz2 $(NAME)_$(VERSION).orig.tar.bz2; tar xvjf $(NAME)_$(VERSION).orig.tar.bz2
cp -R debian sdist/$(FULLNAME)/
cd sdist/$(FULLNAME); dch -v $(VERSION)-1 "New upstream release"; dpkg-buildpackage -uc -us
rm -rf sdist/$(FULLNAME)
git rm -r --cached debian
rm -rf debian