-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters