diff options
| author | Nicholas Bellinger <nab@risingtidesystems.com> | 2011-05-04 21:14:18 +0000 |
|---|---|---|
| committer | Nicholas Bellinger <nab@risingtidesystems.com> | 2011-05-04 21:14:18 +0000 |
| commit | db0c7fd76abc5fcc929b039f2d49f1a38f947968 (patch) | |
| tree | e2d8b8535610d8e6d2c9d1b305230be376d15887 /debian/rules | |
| download | targetcli-db0c7fd76abc5fcc929b039f2d49f1a38f947968.tar.gz | |
initial rtsadmin commit1.99
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..81a22ef --- /dev/null +++ b/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f + +build_dir = build +install_dir = debian/tmp +python = $(shell \ + python=$$(which python2.6 2>/dev/null); \ + if [ -z $$python ]; then python=$$(which python 2>/dev/null); fi; \ + if [ -z $$python ]; then python="/usr/bin/python"; fi; \ + echo $$python) +setup = $(python) ./setup.py --quiet + +binary: binary-indep + +binary-arch: + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_install --list-missing --sourcedir $(install_dir) + dh_fixperms + dh_compress -X.py + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +install: build + dh_testdir + dh_testroot + dh_installdirs + +build: build-stamp +build-stamp: + dh_testdir + # Build the source package + $(setup) build --build-base $(build_dir) install --no-compile --install-purelib $(install_dir)/lib/rtsadmin --install-scripts $(install_dir)/bin + echo "2.6" > $(install_dir)/lib/rtsadmin/.version + # Cleanup + rm -f $(install_dir)/lib/rtsadmin/rtsadmin/*.pyc + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(setup) clean + find . -name "*.pyc" | xargs rm -f + find . -name "*.pyo" | xargs rm -f + rm -rf $(build_dir) $(install_dir) + dh_clean + +.PHONY: binary binary-indep install build clean + |
