Add 'make clean' target, use it for Debian build

Since orig tarball exclude files from .gitignore, make sure make clean
remove them - otherwise dpkg-source complains.
This commit is contained in:
Marek Marczykowski-Górecki 2018-04-13 01:12:06 +02:00
parent c669e9f9f6
commit 65f0f028f8
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
build/
pkgs/
.coverage
__pycache__

View File

@ -12,3 +12,9 @@ install:
$(PYTHON) setup.py install -O1 $(PYTHON_PREFIX_ARG) --root $(DESTDIR)
install -d $(DESTDIR)/etc/xdg/autostart
install -m 0644 etc/qvm-start-gui.desktop $(DESTDIR)/etc/xdg/autostart/
clean:
rm -rf test-packages/__pycache__ qubesadmin/__pycache__
rm -rf qubesadmin/*/__pycache__ qubesadmin/tests/*/__pycache__
rm -rf test-packages/*.egg-info
rm -f .coverage

4
debian/rules vendored
View File

@ -37,6 +37,10 @@ override_dh_auto_install:
install -m 0644 build/man/* \
debian/qubes-core-admin-client/usr/share/man/man1/
override_dh_clean:
dh_clean -O--buildsystem=pybuild
make clean
# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
#override_dh_auto_configure: