From 2889c4d8fb5c5fae0c15384a6e5e744994c376bb Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 23 Jul 2024 15:46:35 +0300 Subject: [PATCH] refactor(build): Port PHONY make targets to just --- Justfile | 12 ++++++++++++ build-aux/que.just | 3 +++ build-aux/que_rust_boilerplate.just | 10 ++++++++++ configure.ac | 1 + 4 files changed, 26 insertions(+) create mode 100644 Justfile create mode 100644 build-aux/que.just create mode 100644 build-aux/que_rust_boilerplate.just diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..1a0ce16 --- /dev/null +++ b/Justfile @@ -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 diff --git a/build-aux/que.just b/build-aux/que.just new file mode 100644 index 0000000..11534b5 --- /dev/null +++ b/build-aux/que.just @@ -0,0 +1,3 @@ +set allow-duplicate-variables +set shell := ["zsh", "-cu"] +lints := "foo" diff --git a/build-aux/que_rust_boilerplate.just b/build-aux/que_rust_boilerplate.just new file mode 100644 index 0000000..52894bb --- /dev/null +++ b/build-aux/que_rust_boilerplate.just @@ -0,0 +1,10 @@ +[group('rust')] +[group('lint')] +lint-rust: rustfmt + echo from rust lint + +lints := lints + "lint-rust" + +[group('rust')] +rustfmt: + diff --git a/configure.ac b/configure.ac index 9a60615..81e63d8 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) ])