From 70935b61efce6da9042f3543add106e7dc52e3ca Mon Sep 17 00:00:00 2001 From: Rolf Vidar Mazunki Hoksaas <32819373+mazunki@users.noreply.github.com> Date: Mon, 13 Jun 2022 09:48:01 +0200 Subject: [PATCH] created a basic makefile to install in /usr/include (#9) * created a basic makefile to install in /usr/include * fixed readme to explain make usage * created a basic makefile to install in /usr/include --- Makefile | 10 ++++++++++ README.md | 8 +------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3db44ac --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: install + +install: conio.h + @test -f /usr/include/conio.h \ + && printf "/usr/include/conio.h already exists\n" \ + || true + @test -w /usr/include/ \ + && cp conio.h /usr/include/conio.h \ + || printf "Please run with elevated privileges\n" \ + diff --git a/README.md b/README.md index fc2f66f..f834089 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,7 @@ This is a library `conio.h` for linux. Just copy file and paste file `conio.h` o > ![Copy & Paste](https://github.com/zoelabbb/conio.h/blob/master/src/img/Copy%20%26%20Paste.png) ### Step 2 : - -- After you finish download file `conio.h` -- Copy file `conio.h` :point_right: !! JUST COPY FILE NOT FOLDER !! -- Go to `/usr/include/` -- Right click on folder `/usr/include/` -- Choose Open as Administrator (root) -- Paste file `conio.h` +- `sudo make install` - Restart or Close your IDE and open it again - And done :D