[Python-apps-commits] r10121 - in packages/mercurial/trunk/debian (rules)

vicho at users.alioth.debian.org vicho at users.alioth.debian.org
Sun Oct 20 21:24:06 UTC 2013


    Date: Sunday, October 20, 2013 @ 21:24:04
  Author: vicho
Revision: 10121

simplify build system

Modified:
  packages/mercurial/trunk/debian/rules	(contents, properties)

Modified: packages/mercurial/trunk/debian/rules
===================================================================
--- packages/mercurial/trunk/debian/rules	2013-10-20 21:24:00 UTC (rev 10120)
+++ packages/mercurial/trunk/debian/rules	2013-10-20 21:24:04 UTC (rev 10121)
@@ -10,8 +10,8 @@
 PYVERS=$(shell pyversions -vs)
 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
-override_dh_auto_build: $(PYVERS:%=build-python%)
-	$(MAKE) -C doc man
+override_dh_auto_build:
+	$(MAKE) all
 	# Do not start a line with a word with a dot in a manpage
 	sed -i -e 's,^[.]\(hgignore\|hg/hgrc\),\\fP\1,' doc/hg.1
 
@@ -43,13 +43,9 @@
 	rename.ul .deb-backup '' $(CURDIR)/tests/*
 endif
 
-build-python%: mercurial/__version__.py
-	python$* setup.py build
-	touch $@
-
 override_dh_auto_install: $(PYVERS:%=install-python%)
 
-install-python%: build-python%
+install-python%:
 	python$* setup.py install --root $(CURDIR)/debian/tmp --install-layout=deb
 	# Do not hardcode the python interpreter
 	sed -i '1c#!/usr/bin/python' debian/tmp/usr/bin/hg
@@ -97,7 +93,6 @@
 	dh_auto_clean
 	mv mercurial/__version__.py.save mercurial/__version__.py
 	$(RM) -rv tmp/
-	$(RM) build-python*
 
 mercurial/__version__.py:
 	@echo "$@ is missing (you probably call 'make clean' directly)."




More information about the Python-apps-commits mailing list