Skip to content

Commit 4a2f846

Browse files
committed
Added \make (un)?install\
1 parent ef383e3 commit 4a2f846

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CPPC = g++
33
Main_Path = ./src/main.cpp
44
Build_Dir = ./Final_Build/
55
Build_Path = $(Build_Dir)CLI_Timer
6+
Install_Path = /bin/CLI_Timer
7+
68
STD ?= 23
79

810
CPPFLAGS = -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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
1212
Watch this video: <https://www.youtube.com/watchv=MJK5mLUz24A> <br>
13+
Or run `sudo make install` (on Linux). <br>
1314
Sadly, 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

src/outputting.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void outputHelp()
171171
\nYou MUST have [--no_prompt] and [--count].\
172172
\n\nCLI_Timer (--version)\nOutputs the current version of CLI_Timer\n\nCLI_Timer (help)\nOutputs this.\
173173
\n\nAny issues, put them on the GitHub repo: https://github.com/1Codealot/CLI_Timer/issues\
174-
\n\nLICENCES: Main: MIT licences.\nSquare-1 code: GNU General Public License v3.0 (repo: <https://github.com/thewca/tnoodle-lib>)";
174+
\n\nLICENCES: Main: MIT licence.\nSquare-1 code: GNU General Public License v3.0 (repo: <https://github.com/thewca/tnoodle-lib>)";
175175
}
176176

177177
void 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
}

0 commit comments

Comments
 (0)