Added install target bc why not
This commit is contained in:
parent
d3ccc83203
commit
e931d3d9d8
3
Makefile
3
Makefile
|
@ -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
|
||||
|
||||
|
|
11
README.md
11
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue