Skip to content

Conversation

@68420948
Copy link
Contributor

@68420948 68420948 commented Nov 25, 2024

Without this patch the creation of $(BUILDDIR) is triggered unrelated by the all target. This only works if all's prerequisites are processed left to right in sequential order. Running the Makefile under make 4.4 (or higher) in --shuffle mode reveals the incorrect dependency by failing to generate $(BUILDDIR)/vpnc, $(BUILDDIR)/cisco-decrypt or $(BUILDDIR)/test-crypto due to the missing directory.
The wrong dependency becomes visible as well, moving $(BUILDDIR) to the end of all's prerequisites list.
See https://trofi.github.io/posts/238-new-make-shuffle-mode.html for more information.

@68420948 68420948 changed the title Create $(BUILDDIR) with the targets which need the directory build: Create $(BUILDDIR) with the targets which need the directory Nov 25, 2024
@68420948 68420948 changed the title build: Create $(BUILDDIR) with the targets which need the directory Create $(BUILDDIR) with the targets which need the directory Nov 25, 2024
@68420948 68420948 changed the title Create $(BUILDDIR) with the targets which need the directory build: Create $(BUILDDIR) with the targets which need the directory Nov 25, 2024
@68420948
Copy link
Contributor Author

Looks to me like commitlint does not recognize the 'build' type.

@streambinder
Copy link
Owner

Hey, thanks for your contributions :)
Commitlint is complaining about the casing of "Create": please, make it lower case (i.e. fix(makefile): create ...).

@streambinder
Copy link
Owner

And also, it keeps complaining as you're not editing the commit message only, you're creating a new commit each time.
Please, squash all your PR commits together :)

Without this patch the creation of $(BUILDDIR) is triggered unrelated by the
all target. This only works if all's prerequisites are processed left to right
in sequential order. Running the Makefile under make 4.4 (or higher) in
--shuffle mode reveals the incorrect dependency by failing to generate
$(BUILDDIR)/vpnc, $(BUILDDIR)/cisco-decrypt or $(BUILDDIR)/test-crypto due to
the missing directory.
The wrong dependency becomes visible as well, moving $(BUILDDIR) to the end of
all's prerequisites list.
See https://trofi.github.io/posts/238-new-make-shuffle-mode.html for more
information.
@68420948
Copy link
Contributor Author

Thanks for the rebase hint. The PR should be good now.

@streambinder streambinder merged commit 2988f75 into streambinder:master Nov 26, 2024
4 checks passed
@streambinder
Copy link
Owner

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants