From e6639cda5853ab95f5d123403dcbb734a10d9363 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Wed, 24 Aug 2022 22:21:13 +0500 Subject: [PATCH] Add the ability to install a program using make --- Makefile | 5 +++++ readme.md | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e8bea5e --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +run: + python3 histd.py + +install: + cp histd.py /usr/local/bin/histd diff --git a/readme.md b/readme.md index 0da425f..318c387 100644 --- a/readme.md +++ b/readme.md @@ -17,9 +17,11 @@ tree ~/.local/histd ## Usage ```sh -./histd.py -``` -or -```sh python3 histd.py ``` + +## Installation +To copy the script to `/usr/local/bin`, run this command as root: +```sh +make install +```