Skip to content

Commit

Permalink
More awesome change
Browse files Browse the repository at this point in the history
  • Loading branch information
nagrat committed Mar 13, 2023
1 parent b336644 commit ca035b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
build:
g++ -o file $(file)
g++ $(file) -o $(execute)

runb:
g++ -o file $(file)
g++ $(file) -o $(execute)
clear
.\file.exe
.\$(execute)

clean:
rm *.exe
8 changes: 4 additions & 4 deletions makefile_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ It has 3 commands for automation and can be added to have more if needed. For my

### Build
```bash
make build "filename.cpp" # makes file - dependent on platform may be exe or not
make build file="filename.cpp" execute="executeable_name"
```
The filename has to be the "" or it will not count it as an argument.
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 "filename.cpp"
make runb file="filename.cpp" execute="executeable_name" # .exe if needed
```
This makes and runs the file assuming it's called file.exe, if not, manually change it in the Makefile.
This makes and runs the file and compiles into what is in the execute flag.

### Clean
```bash
Expand Down

0 comments on commit ca035b2

Please sign in to comment.