Skip to content

Commit

Permalink
created a basic makefile to install in /usr/include (#9)
Browse files Browse the repository at this point in the history
* created a basic makefile to install in /usr/include

* fixed readme to explain make usage

* created a basic makefile to install in /usr/include
  • Loading branch information
mazunki authored Jun 13, 2022
1 parent 3ca90cf commit 70935b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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" \

8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 70935b6

Please sign in to comment.