Skip to content

[Demo] Add a justfile, roughly equivalent to the makefile - #1370

Closed
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:justfile
Closed

[Demo] Add a justfile, roughly equivalent to the makefile#1370
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:justfile

Conversation

@dralley

@dralley dralley commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

I learned about this from pysequoia

Just is a command runner, it has many similarities to Make but does a few things differently.
https://github.com/casey/just

The main benefits are:

  • just --list shows documentation for commands and groups
  • Groups are runnable without needing to define new commands
  • No .PHONY boilerplate
  • multi-line scripts work properly, so _inner commands are not needed
  • dependencies work better (see setup-test-config)
  • just commands can be run while in a subdirectory, doesn't have to be the directory of the justfile

Downside is there is no equivalent to the i18n pattern rules so it becomes a script

@mdellweg

Copy link
Copy Markdown
Member

What is the equivalent of the "not .PHONY" targets then?

The nice thing (for me) about make is that it is basically a functional programming language for the filesystem.

@dralley

dralley commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

I believe it doesn't, because it's a command runner not a build tool. At least I don't see an equivalent, though the docs mention that every recipe in just is equivalent to .PHONY

@mdellweg

Copy link
Copy Markdown
Member

Since we are actually using "proper Make targets" here, I conclude that we do not want to go forward with this idea.

Thank you for bringing it up anyway.

@mdellweg mdellweg closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants