Skip to content

Commit

Permalink
refactor(build): Port PHONY make targets to just
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 10, 2025
1 parent 462bd03 commit 2889c4d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'build-aux/que.just'
import 'build-aux/que_rust_boilerplate.just'

[group('test')]
test:
make test

[group('lint')]
lint: lint-rust
echo from parent lint

# vim: set ft=just
3 changes: 3 additions & 0 deletions build-aux/que.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set allow-duplicate-variables
set shell := ["zsh", "-cu"]
lints := "foo"
10 changes: 10 additions & 0 deletions build-aux/que_rust_boilerplate.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[group('rust')]
[group('lint')]
lint-rust: rustfmt
echo from rust lint

lints := lints + "lint-rust"

[group('rust')]
rustfmt:

1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ QUE_DIST_CHECKSUMS

AM_COND_IF([DEVELOPER_MODE], [
QUE_PROGVAR([gitcliff], [git-cliff])
QUE_PROGVAR([just], [just])
QUE_PROGVAR([typos], [typos])
])

Expand Down

0 comments on commit 2889c4d

Please sign in to comment.