Skip to content
Permalink
Browse files
More awesome change
  • Loading branch information
nagrat committed Mar 13, 2023
1 parent b336644 commit ca035b2bcc31c0b2758fcaaf2edd773007d2d5ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
@@ -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
@@ -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

0 comments on commit ca035b2

Please sign in to comment.