astgrep

packages/ubuntu-gutsy/python-astgrep/debian/rules

9:c50f29a15ba2
2008-10-27 Paul Boddie Added tag rel-0-1 for changeset 4cfc14cfd331
     1 #!/usr/bin/make -f     2      3 # Uncomment this to turn on verbose mode.     4 #export DH_VERBOSE=1     5      6 PYVERS=$(shell pyversions -vr)     7      8 build: build-stamp     9     10 build-stamp: $(PYVERS:%=build-python%)    11 	touch $@    12     13 build-python%:    14 	python$* setup.py build_py    15 	touch $@    16     17 build-python-scripts:    18 	#python setup.py build_scripts    19 	#touch $@    20     21 clean:    22 	dh_testdir    23 	dh_testroot    24 	rm -f *-stamp    25 	rm -rf build    26 	find . -name '*.py[co]' | xargs rm -f    27 	dh_clean    28     29 install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts    30 	# Script fixing would appear here.    31     32 install-prereq:    33 	dh_testdir    34 	dh_testroot    35 	dh_clean -k    36     37 install-python%:    38 	python$* setup.py install_lib --install-dir $(CURDIR)/debian/python-astgrep/usr/lib/python$*/site-packages    39     40 install-python-scripts:    41 	#python setup.py install_scripts --install-dir $(CURDIR)/debian/python-astgrep/usr/bin    42     43 # Build architecture-independent files here.    44     45 binary-indep: install    46 	dh_testdir -i    47 	dh_testroot -i    48 	# Install before dh_pycentral so that it can work out that there's Python involved    49 	dh_install -i -n    50 	dh_pycentral -i    51 	dh_installdocs -i    52 	dh_installchangelogs -i    53 	gzip --best debian/astgrep.1    54 	dh_installman -i debian/astgrep.1.gz    55 	dh_fixperms -i    56 	dh_installdeb -i    57 	dh_gencontrol -i    58 	dh_md5sums -i    59 	dh_builddeb -i    60     61 # Build architecture-dependent files here.    62     63 binary-arch:    64 	# Empty rule for this package.    65     66 binary: binary-indep binary-arch    67 .PHONY: build clean binary-arch binary-indep binary install