Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4003CEM-Exam-Practise/makefile_tutorial.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (20 sloc)
902 Bytes
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
# My Makefile usage | |
I have a [Makefile](Makefile), it's usage is quite simple. I made it because it's easier for me to compile without having to type out the entire god damn command. Even though that's fun for me. Don't @ me, I know it's weird; like my love for OOP. | |
## Usage | |
It has 3 commands for automation and can be added to have more if needed. For my needs, 3 is enough. | |
### Build | |
```bash | |
make build file="filename.cpp" execute="executeable_name" | |
``` | |
The filename and executeable name has to be the "" or it will not count it as an argument! | |
### Build and run... and clear | |
```bash | |
make runb file="filename.cpp" execute="executeable_name" # .exe if needed | |
``` | |
This makes and runs the file and compiles into what is in the execute flag. | |
### Clean | |
```bash | |
make clean # removes *.exe | |
``` | |
This removes all .exe files for Windows. | |
#### Made by [Taran Nagra](https://github.coventry.ac.uk/nagrat) |