Mercurial > hg
changeset 43318:cdf6db1f4faf stable
packaging: distinguish clean and build steps from install in Debian
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 23 Oct 2019 16:35:27 +0200 |
parents | 4caf88845082 |
children | 11c85873e106 |
files | contrib/packaging/debian/rules |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/packaging/debian/rules Wed Oct 23 16:25:41 2019 +0200 +++ b/contrib/packaging/debian/rules Wed Oct 23 16:35:27 2019 +0200 @@ -17,13 +17,21 @@ dh_python3 --shebang=/usr/bin/python3 find debian/mercurial/usr/share -type d -empty -delete +override_dh_auto_clean: + $(MAKE) cleanbutpackages + $(MAKE) -C contrib/chg clean + +override_dh_auto_build: + $(MAKE) all + $(MAKE) -C contrib/chg all + override_dh_install: python3 setup.py install --root "$(CURDIR)"/debian/mercurial --install-layout=deb # chg make -C contrib/chg \ DESTDIR="$(CURDIR)"/debian/mercurial \ PREFIX=/usr \ - clean install + install # remove arch-independent python stuff find "$(CURDIR)"/debian/mercurial/usr/lib \ ! -name '*.so' ! -type d -delete , \