2 # debian/rules file - for dak (0.0)
3 # Based on sample debian/rules file - for GNU Hello (1.3).
4 # Copyright 1994,1995 by Ian Jackson.
5 # Copyright 1998,1999,2000,2001,2002,2006 James Troup
6 # I hereby give you perpetual unlimited permission to copy,
7 # modify and relicense this file, provided that you do not remove
8 # my name from the file itself. (I assert my moral right of
9 # paternity under the Copyright, Designs and Patents Act 1988.)
10 # This file may have to be extensively modified
12 PYTHONVER := `/usr/bin/python -c 'import sys;print sys.version[:3]'`
14 install_dir=install -d -m 755
15 install_file=install -m 644
16 install_script=install -m 755
17 install_binary=install -m 755 -s
27 -rm -rf debian/tmp debian/*~ debian/files* debian/substvars build-stamp
30 binary-indep: checkroot build
34 $(install_dir) debian/tmp/DEBIAN/
35 $(install_script) debian/postinst debian/tmp/DEBIAN/
37 $(install_dir) debian/tmp/usr/lib/python/site-packages/dak/lib/
39 $(install_file) dak/*.py debian/tmp/usr/lib/python/site-packages/dak/
40 $(install_file) dak/lib/*.py debian/tmp/usr/lib/python/site-packages/dak/lib/
43 $(install_dir) debian/tmp/usr/bin/
44 $(install_script) dak/shell.py debian/tmp/usr/bin/dak
46 $(install_dir) -m 755 debian/tmp/usr/share/man/man1/
47 $(install_file) docs/manpages/*.1 debian/tmp/usr/share/man/man1/
48 gzip -9v debian/tmp/usr/share/man/man1/*
50 $(install_dir) -m 755 debian/tmp/etc/dak/
52 $(install_dir) debian/tmp/usr/share/doc/dak/
53 $(install_file) debian/changelog debian/tmp/usr/share/doc/dak/changelog.Debian
54 $(install_file) README NEWS THANKS TODO debian/tmp/usr/share/doc/dak/
55 $(install_file) docs/README* debian/tmp/usr/share/doc/dak/
56 $(install_file) ChangeLog debian/tmp/usr/share/doc/dak/changelog
57 gzip -9v debian/tmp/usr/share/doc/dak/*
58 $(install_file) debian/copyright debian/tmp/usr/share/doc/dak/
60 $(install_dir) debian/tmp/usr/share/doc/dak/examples/
61 $(install_file) examples/dak.conf debian/tmp/usr/share/doc/dak/examples/
62 # Hoho (err, rather: FIXME)
63 $(install_file) *.sql debian/tmp/usr/share/doc/dak/examples/
64 gzip -9v debian/tmp/usr/share/doc/dak/examples/*
66 dpkg-shlibdeps sql-aptvc.so
67 /usr/bin/python debian/python-dep >> debian/substvars
69 chown -R root.root debian/tmp
70 chmod -R go=rX debian/tmp
71 dpkg --build debian/tmp ..
76 test -f dak/ls.py -a -f debian/rules
79 # Below here is fairly generic really
81 binary: binary-indep binary-arch
85 test root = "`whoami`"
87 .PHONY: binary binary-arch binary-indep clean checkroot