Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Makefile.in: stop running distclean on dist" #5182

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Jun 8, 2022

This reverts commit 1fb814e.

If distclean is not executed before copying the files on dist, then the
generated files inside src/ are included in the dist archive:

$ ./configure >/dev/null && make distclean >/dev/null &&
  ./configure >/dev/null && make dist | grep 'Makefile$' | wc -l
26

This happens because src/ is copied wholesale on dist (see DISTFILES).
Revert the commit to ensure that only the input files (such as the
"Makefile.in" files) are archived.

Related discussion:
#5154 (review)

Relates to #5142.

This reverts commit 1fb814e.

If distclean is not executed before copying the files on dist, then the
generated files inside src/ are included in the dist archive:

    $ ./configure >/dev/null && make distclean >/dev/null &&
      ./configure >/dev/null && make dist | grep 'Makefile$' | wc -l
    26

This happens because src/ is copied wholesale on dist (see DISTFILES).
Revert the commit to ensure that only the input files (such as the
"Makefile.in" files) are archived.

Related discussion:
netblue30#5154 (review)

Relates to netblue30#5142.
@netblue30 netblue30 merged commit 41dcfcd into netblue30:master Jun 8, 2022
@netblue30
Copy link
Owner

merged!

@kmk3 kmk3 deleted the revert-stop-distclean-on-dist branch June 8, 2022 20:57
kmk3 added a commit that referenced this pull request Jun 11, 2022
This reverts commit b4d0b24.

This amends commit 56b86f8 ("Revert "Makefile.in: stop running
distclean on dist"", 2022-06-08) / PR #5182.  Since the revert, `make
dist` itself already runs `make distclean`.

This also means that it is no longer necessary to run ./configure (to
generate "Makefile" from "Makefile.in") before running
./contrib/fj-mkdeb.py.

Misc: This is not a clean revert.

Relates to #5154.
kmk3 added a commit to kmk3/firejail that referenced this pull request Jul 27, 2023
The clean target is currently enough to remove all generated files other
than the ones directly in the root directory, so to simplify the dist
target, make it depend on clean instead of distclean.

See commit 5f27852 ("build: remove unnecessary distclean targets",
2023-07-15) / PR netblue30#5911.

Relates to netblue30#5142 netblue30#5182.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (RELNOTES N/A)
Development

Successfully merging this pull request may close these issues.

3 participants