Added install target bc why not

This commit is contained in:
Casey 2022-02-07 12:25:03 +03:00
parent d3ccc83203
commit e931d3d9d8
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
2 changed files with 7 additions and 7 deletions

View File

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

View File

@ -64,19 +64,16 @@ strip ./yaitaa
#### 3. Installation
It's not really designed to be installed system-wide, but if you *really* want
to do so, do the following
```sh
# as root (using sudo/doas/etc.)
cp ./yaitaa /usr/local/bin/yaitaa
# as root
make install
```
Alternatively, you can install it to your local directory, if it's in your
Alternatively, you can install it to your local user directory, if it's in your
`$PATH`:
```sh
cp ./yaitaa ~/.local/bin/yaitaa
make install INSTALL_PATH=$HOME/.local/bin
```
## License