]> git.donarmstrong.com Git - debhelper.git/blob - dh_auto_clean
merge
[debhelper.git] / dh_auto_clean
1 #!/usr/bin/perl -w
2
3 =head1 NAME
4
5 dh_auto_clean - automatically cleans up after a build
6
7 =cut
8
9 use strict;
10 use Debian::Debhelper::Dh_Buildsystems;
11
12 =head1 SYNOPSIS
13
14 B<dh_auto_clean> [S<I<build system options>>] [S<I<debhelper options>>] [S<B<--> I<params>>]
15
16 =head1 DESCRIPTION
17
18 B<dh_auto_clean> is a debhelper program that tries to automatically clean up
19 after a package build. It does so by running the appropriate command for
20 the build system it detects the package uses. For example, if there's a
21 F<Makefile> and it contains a B<distclean>, B<realclean>, or B<clean> target,
22 then this is done by running B<make> (or B<MAKE>, if the environment variable is
23 set). If there is a F<setup.py> or F<Build.PL>, it is run to clean the package.
24
25 This is intended to work for about 90% of packages. If it doesn't work, or
26 tries to use the wrong clean target, you're encouraged to skip using
27 B<dh_auto_clean> at all, and just run B<make clean> manually.
28
29 =head1 OPTIONS
30
31 See L<debhelper(7)/B<BUILD SYSTEM OPTIONS>> for a list of common build
32 system selection and control options.
33
34 =over 4
35
36 =item B<--> I<params>
37
38 Pass I<params> to the program that is run. These can be used to supplement
39 or override the any standard parameters that B<dh_auto_clean> passes.
40
41 =back
42
43 =cut
44
45 buildsystems_init();
46 buildsystems_do();
47
48 =head1 SEE ALSO
49
50 L<debhelper(7)>
51
52 This program is a part of debhelper.
53
54 =head1 AUTHOR
55
56 Joey Hess <joeyh@debian.org>
57
58 =cut