File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ CPPC = g++
33Main_Path = ./src/main.cpp
44Build_Dir = ./Final_Build/
55Build_Path = $(Build_Dir ) CLI_Timer
6+ Install_Path = /bin/CLI_Timer
7+
68STD ?= 23
79
810CPPFLAGS = -O3 -Wall -Wextra -Wpedantic
@@ -23,5 +25,11 @@ cross:
2325 $(TARGET ) : $(TARGET ) .cpp
2426 $(CPPC ) $(CPPFLAGS ) -o $(Build_Path ) $(Main_Path )
2527 x86_64-w64-mingw32-g++ $(CPPFLAGS ) -o $(Build_Path ) _Windows.exe $(Main_Path ) -static-libgcc -static-libstdc++
28+
29+ install :
30+ cp $(Build_Path ) $(Install_Path )
31+
32+ uninstall :
33+ rm $(Install_Path )
2634
2735
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ You can also run `make cross` to compile it for your main OS and windows. (This
1010
1111# Installing
1212Watch this video: < https://www.youtube.com/watchv=MJK5mLUz24A > <br >
13+ Or run ` sudo make install ` (on Linux). <br >
1314Sadly, I don't have a way to install (or compile) it on mac. If you know how to install it on mac, please tell me!
1415
1516# Commands
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ void outputHelp()
171171 \n You MUST have [--no_prompt] and [--count].\
172172 \n\n CLI_Timer (--version)\n Outputs the current version of CLI_Timer\n\n CLI_Timer (help)\n Outputs this.\
173173 \n\n Any issues, put them on the GitHub repo: https://github.com/1Codealot/CLI_Timer/issues\
174- \n\n LICENCES: Main: MIT licences .\n Square-1 code: GNU General Public License v3.0 (repo: <https://github.com/thewca/tnoodle-lib>)" ;
174+ \n\n LICENCES: Main: MIT licence .\n Square-1 code: GNU General Public License v3.0 (repo: <https://github.com/thewca/tnoodle-lib>)" ;
175175}
176176
177177void outputVersion ()
@@ -181,4 +181,5 @@ void outputVersion()
181181 std::cout << " Moved the outputting code to another file." << std::endl;
182182 std::cout << " Fixed a bug if something was of length 0." << std::endl;
183183 std::cout << " Used std::stringstream instead of std::string" << std::endl;
184+ std::cout << " Added make un/install" << std::endl;
184185}
You can’t perform that action at this time.
0 commit comments