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:
|
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
|
||||||
|
|
||||||
|
|
11
README.md
11
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue