diff options
| author | 2026-02-25 20:44:04 -0500 | |
|---|---|---|
| committer | 2026-02-25 20:44:04 -0500 | |
| commit | 2b702a8b91588873a663ecd9af249e1dc1a47160 (patch) | |
| tree | 6e7d693a066dbe762f6a9a5d53b9315333824a09 /justfile | |
| parent | initial commit (diff) | |
begin work on add and remove
Diffstat (limited to '')
| -rw-r--r-- | justfile | 28 |
1 files changed, 28 insertions, 0 deletions
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}} |
