diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fj-mkdeb.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/fj-mkdeb.py b/contrib/fj-mkdeb.py index 60e25fd14..75fb6cbc8 100755 --- a/contrib/fj-mkdeb.py +++ b/contrib/fj-mkdeb.py | |||
@@ -29,6 +29,12 @@ def run(srcdir, args): | |||
29 | else: | 29 | else: |
30 | escaped_args.append(shlex.quote(a)) | 30 | escaped_args.append(shlex.quote(a)) |
31 | 31 | ||
32 | # Remove generated files. | ||
33 | if not dry_run: | ||
34 | distclean = subprocess.call(['make', 'distclean']) | ||
35 | if distclean != 0: | ||
36 | return distclean | ||
37 | |||
32 | # Run configure to generate mkdeb.sh. | 38 | # Run configure to generate mkdeb.sh. |
33 | first_config = subprocess.call(['./configure', '--prefix=/usr'] + args) | 39 | first_config = subprocess.call(['./configure', '--prefix=/usr'] + args) |
34 | if first_config != 0: | 40 | if first_config != 0: |