From e931d3d9d88833e378512fc1303692bb21b52d09 Mon Sep 17 00:00:00 2001 From: hkc Date: Mon, 7 Feb 2022 12:25:03 +0300 Subject: [PATCH] Added install target bc why not --- Makefile | 3 +++ README.md | 11 ++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2979d29..1b6582d 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index 3fbff5e..9f5f95a 100644 --- a/README.md +++ b/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