Make build default, make run better, add clean, install, and uninstall (install and uninstall only on linux)

main
DavidDGTNT 2021-09-13 18:11:32 +00:00
parent 4437f93f05
commit 190a7a184a
3 changed files with 18 additions and 12 deletions

View File

@ -1,6 +1,12 @@
run:
g++ -o calc main.cpp
./calc
build: build:
g++ -o calc main.cpp g++ -o calc main.cpp
run: build
./calc
install: build
cp calc /usr/local/bin
clean:
rm calc
uninstall:
rm /usr/local/bin/calc

View File

@ -1,6 +1,6 @@
run:
g++ -o calc main.cpp
calc.exe
build: build:
g++ -o calc main.cpp g++ -o calc main.cpp
run: build
calc.exe
clean:
del calc.exe

View File

@ -1,6 +1,6 @@
run:
g++ -o calc main.cpp
.\calc.exe
build: build:
g++ -o calc main.cpp g++ -o calc main.cpp
run: build
.\calc.exe
clean:
rm calc.exe