Skip to content

Commit

Permalink
fj-mkdeb.py: run distclean before ./configure
Browse files Browse the repository at this point in the history
This (mostly) restores the behavior from before commit 1fb814e
("Makefile.in: stop running distclean on dist", 2022-05-13) / PR netblue30#5142.
./configure still has to be called before calling ./contrib/fj-mkdeb.py
(to generate Makefile from Makefile.in before calling `make distclean`).
  • Loading branch information
kmk3 committed May 27, 2022
1 parent ecde101 commit 519f623
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/fj-mkdeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ def run(srcdir, args):
else:
escaped_args.append(shlex.quote(a))

# Remove generated files.
if not dry_run:
distclean = subprocess.call(['make', 'distclean'])
if distclean != 0:
return distclean

# Run configure to generate mkdeb.sh.
first_config = subprocess.call(['./configure', '--prefix=/usr'] + args)
if first_config != 0:
Expand Down

0 comments on commit 519f623

Please sign in to comment.