Skip to content

Commit 8ab22cc

Browse files
committed
Added Makefile.
1 parent a278cb7 commit 8ab22cc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ROOTCMD = fakeroot
2+
BUILD_NUMBER ?= 1
3+
4+
.PHONY: debian/changelog
5+
6+
debian/changelog:
7+
-git branch -D changelog
8+
git checkout -b changelog
9+
git-dch -a --debian-branch changelog --snapshot \
10+
--snapshot-number=$(BUILD_NUMBER)
11+
12+
dist:
13+
mkdir -p $@
14+
15+
deb: debian/changelog dist
16+
dpkg-buildpackage -r$(ROOTCMD) -us -uc
17+
mv ../python-oauth2_* dist/
18+
19+
sdist:
20+
python setup.py sdist
21+
22+
clean:
23+
rm -rf dist
24+
$(ROOTCMD) debian/rules clean

0 commit comments

Comments
 (0)