2006-04-26 10:48:09 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
#
|
|
|
|
# adapted by Logilab for automatic generation by debianize
|
|
|
|
# (part of the devtools project, http://www.logilab.org/projects/devtools)
|
|
|
|
#
|
2010-03-23 10:39:48 +00:00
|
|
|
# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
|
2006-04-26 10:48:09 +00:00
|
|
|
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
2009-02-03 16:36:09 +00:00
|
|
|
|
2006-04-26 10:48:09 +00:00
|
|
|
build: build-stamp
|
2009-02-03 16:36:09 +00:00
|
|
|
build-stamp:
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_testdir
|
2009-03-24 14:15:18 +00:00
|
|
|
NO_SETUPTOOLS=1 python setup.py -q build
|
2006-04-26 10:48:09 +00:00
|
|
|
touch build-stamp
|
|
|
|
|
2009-02-03 16:36:09 +00:00
|
|
|
clean:
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-02-03 16:36:09 +00:00
|
|
|
|
2009-03-24 14:15:18 +00:00
|
|
|
NO_SETUPTOOLS=1 python setup.py clean
|
2009-02-03 16:36:09 +00:00
|
|
|
|
|
|
|
find . -name "*.pyc" -delete
|
|
|
|
|
2009-07-02 08:05:59 +00:00
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
dh_clean build-stamp
|
2006-04-26 10:48:09 +00:00
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
2009-02-03 16:36:09 +00:00
|
|
|
|
2009-07-02 08:05:59 +00:00
|
|
|
NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
|
|
|
|
--root=$(CURDIR)/debian/pylint \
|
|
|
|
--install-layout=deb
|
2006-06-15 08:44:22 +00:00
|
|
|
|
2009-07-02 08:05:59 +00:00
|
|
|
rm -rf debian/pylint/usr/lib/python*/*-packages/pylint/test
|
2009-02-03 16:36:09 +00:00
|
|
|
|
|
|
|
# fixes shebangs
|
2010-11-15 14:56:13 +00:00
|
|
|
for exec_file in pylint pylint-gui symilar epylint pyreverse ; do \
|
|
|
|
if head -1 debian/pylint/usr/bin/$$exec_file | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
|
|
|
|
sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/$$exec_file; \
|
2009-02-03 16:36:09 +00:00
|
|
|
fi ; \
|
2010-11-15 14:56:13 +00:00
|
|
|
chmod a+x debian/pylint/usr/bin/$$exec_file; \
|
2009-02-03 16:36:09 +00:00
|
|
|
done
|
|
|
|
|
2008-03-27 11:16:00 +00:00
|
|
|
install -m 644 elisp/pylint.el debian/pylint/usr/share/emacs/site-lisp/pylint/
|
2007-07-04 10:32:20 +00:00
|
|
|
|
2006-04-26 10:48:09 +00:00
|
|
|
# install tests
|
2007-07-04 10:32:20 +00:00
|
|
|
#(cd test && find . -type f -not \( -path '*/CVS/*' -or -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/pylint/usr/share/doc/pylint/test/{} \;)
|
2006-04-26 10:48:09 +00:00
|
|
|
|
2010-05-25 10:50:46 +00:00
|
|
|
get-orig-source:
|
2010-05-26 17:20:42 +00:00
|
|
|
uscan --verbose --force-download --destdir .
|
2010-05-25 10:50:46 +00:00
|
|
|
|
2006-04-26 10:48:09 +00:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
2015-02-15 10:12:46 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_install -i
|
2009-03-24 16:22:05 +00:00
|
|
|
dh_pysupport -i
|
2009-02-03 16:36:09 +00:00
|
|
|
dh_installchangelogs -i ChangeLog
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_installexamples -i
|
2009-02-03 16:36:09 +00:00
|
|
|
dh_installdocs -i
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_installman -i
|
2008-03-27 11:16:00 +00:00
|
|
|
dh_installemacsen
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_link -i
|
|
|
|
dh_compress -i -X.py -X.ini -X.xml -Xtest
|
|
|
|
dh_fixperms -i
|
|
|
|
dh_installdeb -i
|
2015-02-15 10:12:46 +00:00
|
|
|
dh_gencontrol -i
|
2006-04-26 10:48:09 +00:00
|
|
|
dh_md5sums -i
|
|
|
|
dh_builddeb -i
|
|
|
|
|
2006-06-15 08:44:22 +00:00
|
|
|
binary-arch:
|
2006-04-26 10:48:09 +00:00
|
|
|
|
|
|
|
binary: binary-indep
|
2006-06-15 08:44:22 +00:00
|
|
|
.PHONY: build clean binary binary-indep binary-arch
|