mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Makefile changes
- Default target always builds the master branch and cleans afterwards. - Update clean target to use to debian/clean file. - Remove editor variable as it should be done system-wide. - Various other changes. Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
parent
a178b893cb
commit
9efd539a57
63
Makefile
63
Makefile
|
@ -1,57 +1,48 @@
|
||||||
.PHONY: snap
|
|
||||||
VERSION=`grep "__version__" lutris/__init__.py | cut -d" " -f 3 | sed 's|"\(.*\)"|\1|'`
|
VERSION=`grep "__version__" lutris/__init__.py | cut -d" " -f 3 | sed 's|"\(.*\)"|\1|'`
|
||||||
|
|
||||||
cover:
|
all:
|
||||||
rm tests/fixtures/pga.db -f
|
export GITBRANCH=master
|
||||||
rm tests/coverage/ -rf
|
debuild
|
||||||
nosetests --with-coverage --cover-package=lutris --cover-html --cover-html-dir=tests/coverage
|
debclean
|
||||||
|
|
||||||
|
build:
|
||||||
|
gbp buildpackage --git-debian-branch=${GITBRANCH}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
debclean
|
||||||
|
|
||||||
test:
|
test:
|
||||||
rm tests/fixtures/pga.db -f
|
rm tests/fixtures/pga.db -f
|
||||||
nosetests
|
nosetests
|
||||||
flake8 lutris
|
flake8 lutris
|
||||||
|
|
||||||
deb-source: clean
|
cover:
|
||||||
gbp buildpackage -S --git-debian-branch=${GITBRANCH}
|
rm tests/fixtures/pga.db -f
|
||||||
mkdir -p build
|
rm tests/coverage/ -rf
|
||||||
mv ../lutris_0* build
|
nosetests --with-coverage --cover-package=lutris --cover-html --cover-html-dir=tests/coverage
|
||||||
|
|
||||||
deb: clean
|
|
||||||
gbp buildpackage --git-debian-branch=${GITBRANCH}
|
|
||||||
mkdir -p build
|
|
||||||
mv ../lutris_0* build
|
|
||||||
|
|
||||||
changelog-add:
|
|
||||||
EDITOR=vim dch -i
|
|
||||||
|
|
||||||
changelog-edit:
|
|
||||||
EDITOR=vim dch -e
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf build
|
|
||||||
debclean
|
|
||||||
|
|
||||||
build-all: deb
|
|
||||||
|
|
||||||
upload:
|
|
||||||
scp build/lutris_${VERSION}.tar.xz lutris.net:/srv/releases/
|
|
||||||
|
|
||||||
pgp-renew:
|
pgp-renew:
|
||||||
osc signkey --extend home:strycore
|
osc signkey --extend home:strycore
|
||||||
osc rebuildpac home:strycore --all
|
osc rebuildpac home:strycore --all
|
||||||
|
|
||||||
winetricks:
|
update-winetricks:
|
||||||
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O share/lutris/bin/winetricks
|
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O share/lutris/bin/winetricks
|
||||||
|
|
||||||
snap:
|
changelog-add:
|
||||||
snapcraft clean lutris -s pull
|
dch -i
|
||||||
snapcraft
|
|
||||||
|
changelog-edit:
|
||||||
|
dch -e
|
||||||
|
|
||||||
|
upload:
|
||||||
|
scp build/lutris_${VERSION}.tar.xz lutris.net:/srv/releases/
|
||||||
|
|
||||||
upload-ppa:
|
upload-ppa:
|
||||||
dput ppa:lutris-team/lutris build/lutris_${VERSION}*_source.changes
|
dput ppa:lutris-team/lutris build/lutris_${VERSION}*_source.changes
|
||||||
|
|
||||||
upload-staging:
|
upload-staging:
|
||||||
gbp buildpackage -S --git-debian-branch=master
|
|
||||||
mkdir -p build
|
|
||||||
mv ../lutris_0* build
|
|
||||||
dput --force ppa:lutris-team/lutris-staging build/lutris_${VERSION}*_source.changes
|
dput --force ppa:lutris-team/lutris-staging build/lutris_${VERSION}*_source.changes
|
||||||
|
|
||||||
|
snap:
|
||||||
|
snapcraft clean lutris -s pull
|
||||||
|
snapcraft
|
||||||
|
|
Loading…
Reference in a new issue