It should be PREFIX, not INSTALL_PATH
This commit is contained in:
parent
e931d3d9d8
commit
283422c62d
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ clean:
|
||||||
$(RM) yaitaa obj/*
|
$(RM) yaitaa obj/*
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D -m 755 yaitaa $(INSTALL_PATH)/yaitaa
|
install -D -m 755 yaitaa $(PREFIX)/bin/yaitaa
|
||||||
|
|
||||||
yaitaa: lib
|
yaitaa: lib
|
||||||
$(CC) $(CFLAGS) src/main.c $(INCLUDES) $(OBJECTS) $(CLIBS) -o ./yaitaa
|
$(CC) $(CFLAGS) src/main.c $(INCLUDES) $(OBJECTS) $(CLIBS) -o ./yaitaa
|
||||||
|
|
|
@ -66,14 +66,14 @@ strip ./yaitaa
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# as root
|
# 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
|
Alternatively, you can install it to your local user directory, if it's in your
|
||||||
`$PATH`:
|
`$PATH`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make install INSTALL_PATH=$HOME/.local/bin
|
make install PREFIX=$HOME/.local/ # will install it to $HOME/.local/bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
Loading…
Reference in New Issue