Skip to content

Commit b4d0b24

Browse files
committed
fj-mkdeb.py: run distclean before ./configure
This (mostly) restores the behavior from before commit 1fb814e ("Makefile.in: stop running distclean on dist", 2022-05-13) / PR #5142. ./configure still has to be called before calling ./contrib/fj-mkdeb.py (to generate Makefile from Makefile.in before calling `make distclean`).
1 parent 5247a6c commit b4d0b24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/fj-mkdeb.py

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ def run(srcdir, args):
2929
else:
3030
escaped_args.append(shlex.quote(a))
3131

32+
# Remove generated files.
33+
if not dry_run:
34+
distclean = subprocess.call(['make', 'distclean'])
35+
if distclean != 0:
36+
return distclean
37+
3238
# Run configure to generate mkdeb.sh.
3339
first_config = subprocess.call(['./configure', '--prefix=/usr'] + args)
3440
if first_config != 0:

0 commit comments

Comments
 (0)