From 2b702a8b91588873a663ecd9af249e1dc1a47160 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Wed, 25 Feb 2026 20:44:04 -0500 Subject: begin work on add and remove --- justfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 justfile (limited to 'justfile') diff --git a/justfile b/justfile new file mode 100644 index 0000000..d944b13 --- /dev/null +++ b/justfile @@ -0,0 +1,28 @@ +name := 'forge' + +rootdir := '' +prefix := '/usr' + +base-dir := absolute_path(clean(rootdir / prefix)) + +bin-src := 'target' / 'release' / name +bin-dst := base-dir / 'bin' / name + +default: build-release + +clean: + cargo clean + +build-debug *args: + cargo build {{args}} + +build-release *args: (build-debug '--release' args) + +run *args: + env RUST_BACKTRACE=full cargo run --release {{args}} + +install: + install -Dm0755 {{bin-src}} {{bin-dst}} + +uninstall: + rm {{bin-dst}} -- cgit v1.2.3-59-g8ed1b