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: clean:
$(RM) yaitaa obj/* $(RM) yaitaa obj/*
install:
install -D -m 755 yaitaa $(INSTALL_PATH)/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

View File

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