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