It should be PREFIX, not INSTALL_PATH

This commit is contained in:
Casey 2022-02-07 12:34:57 +03:00
parent e931d3d9d8
commit 283422c62d
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ clean:
$(RM) yaitaa obj/*
install:
install -D -m 755 yaitaa $(INSTALL_PATH)/yaitaa
install -D -m 755 yaitaa $(PREFIX)/bin/yaitaa
yaitaa: lib
$(CC) $(CFLAGS) src/main.c $(INCLUDES) $(OBJECTS) $(CLIBS) -o ./yaitaa

View File

@ -66,14 +66,14 @@ strip ./yaitaa
```sh
# as root
make install
make install # Will install it to /bin/
```
Alternatively, you can install it to your local user directory, if it's in your
`$PATH`:
```sh
make install INSTALL_PATH=$HOME/.local/bin
make install PREFIX=$HOME/.local/ # will install it to $HOME/.local/bin/
```
## License