aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Negri <me@tommasongr.com>2026-08-10 00:04:44 +0200
committerTommaso Negri <me@tommasongr.com>2026-08-10 00:04:44 +0200
commitaed0133a9f49c447d6b6796c3c3ca9c05df80d70 (patch)
treef330ea2dd476fa41619734621f61d149e0cc74da
parentd59b22e557fa5d69ea6be725a7e5bcd829588225 (diff)
downloadbar-aed0133a9f49c447d6b6796c3c3ca9c05df80d70.tar.gz
bar-aed0133a9f49c447d6b6796c3c3ca9c05df80d70.zip
change default install location
-rw-r--r--Makefile2
-rw-r--r--Sources/bar/bar.docc/installation.md4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9f7cd43..b76a941 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PREFIX ?= /usr/local/bin
+PREFIX ?= ~/.local/bin
all: run
diff --git a/Sources/bar/bar.docc/installation.md b/Sources/bar/bar.docc/installation.md
index a96f79f..d49c084 100644
--- a/Sources/bar/bar.docc/installation.md
+++ b/Sources/bar/bar.docc/installation.md
@@ -26,11 +26,11 @@ From within the *bar* directory, run the install target:
make install
```
-> Tip: By default, the install target builds a release binary and copies it to `/usr/local/bin/bar`.
+> Tip: By default, the install target builds a release binary and copies it to `~/.local/bin/bar`.
> You can override the install location by setting `PREFIX`:
>
> ```shell
-> make install PREFIX=~/.local/bin
+> make install PREFIX=/usr/local/bin
> ```
### Without make