Mercurial > hg
comparison contrib/packaging/debian/rules @ 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 | a882c088dc2e |
children | 11c85873e106 |
comparison
equal
deleted
inserted
replaced
43317:4caf88845082 | 43318:cdf6db1f4faf |
---|---|
15 | 15 |
16 override_dh_python3: | 16 override_dh_python3: |
17 dh_python3 --shebang=/usr/bin/python3 | 17 dh_python3 --shebang=/usr/bin/python3 |
18 find debian/mercurial/usr/share -type d -empty -delete | 18 find debian/mercurial/usr/share -type d -empty -delete |
19 | 19 |
20 override_dh_auto_clean: | |
21 $(MAKE) cleanbutpackages | |
22 $(MAKE) -C contrib/chg clean | |
23 | |
24 override_dh_auto_build: | |
25 $(MAKE) all | |
26 $(MAKE) -C contrib/chg all | |
27 | |
20 override_dh_install: | 28 override_dh_install: |
21 python3 setup.py install --root "$(CURDIR)"/debian/mercurial --install-layout=deb | 29 python3 setup.py install --root "$(CURDIR)"/debian/mercurial --install-layout=deb |
22 # chg | 30 # chg |
23 make -C contrib/chg \ | 31 make -C contrib/chg \ |
24 DESTDIR="$(CURDIR)"/debian/mercurial \ | 32 DESTDIR="$(CURDIR)"/debian/mercurial \ |
25 PREFIX=/usr \ | 33 PREFIX=/usr \ |
26 clean install | 34 install |
27 # remove arch-independent python stuff | 35 # remove arch-independent python stuff |
28 find "$(CURDIR)"/debian/mercurial/usr/lib \ | 36 find "$(CURDIR)"/debian/mercurial/usr/lib \ |
29 ! -name '*.so' ! -type d -delete , \ | 37 ! -name '*.so' ! -type d -delete , \ |
30 -type d -empty -delete | 38 -type d -empty -delete |
31 python3 setup.py install --root "$(CURDIR)/debian/mercurial-common" --install-layout=deb | 39 python3 setup.py install --root "$(CURDIR)/debian/mercurial-common" --install-layout=deb |