chiark / gitweb /
run it through Debian first and then sync it, is best, apparently
[autopkgtest.git] / debian / rules
1 #!/usr/bin/make -f
2 #
3 # This file is part of autodebtest
4 # autodebtest is a tool for testing Debian binary packages
5 #
6 # autodebtest is Copyright (C) 2006 Canonical Ltd.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #
22 # See the file CREDITS for a full list of credits information (often
23 # installed as /usr/share/doc/autodebtest/CREDITS).
24
25 p=autodebtest
26
27 build build-arch build-indep:
28 binary-arch:
29
30 binary binary-indep: checkdir
31         dh_testroot
32         dh_clean
33         dh_installdirs usr
34
35         $(MAKE) install prefix=debian/$p/usr
36
37         cat CREDITS debian/copyright.suffix \
38                 >debian/$p/usr/share/doc/$p/copyright
39         dh_compress
40         dh_link
41         dh_md5sums
42         dh_fixperms
43         dh_gencontrol
44         dh_builddeb
45
46 clean: checkdir
47         dh_testroot
48         dh_clean
49
50 checkdir:
51         dh_testdir runner/adt-run
52