mirror of https://github.com/daviddgtnt/calc
Make build default, make run better, add clean, install, and uninstall (install and uninstall only on linux)
parent
4437f93f05
commit
190a7a184a
14
Makefile
14
Makefile
|
@ -1,6 +1,12 @@
|
|||
run:
|
||||
g++ -o calc main.cpp
|
||||
./calc
|
||||
|
||||
build:
|
||||
g++ -o calc main.cpp
|
||||
|
||||
run: build
|
||||
./calc
|
||||
|
||||
install: build
|
||||
cp calc /usr/local/bin
|
||||
clean:
|
||||
rm calc
|
||||
uninstall:
|
||||
rm /usr/local/bin/calc
|
|
@ -1,6 +1,6 @@
|
|||
run:
|
||||
g++ -o calc main.cpp
|
||||
calc.exe
|
||||
|
||||
build:
|
||||
g++ -o calc main.cpp
|
||||
run: build
|
||||
calc.exe
|
||||
clean:
|
||||
del calc.exe
|
|
@ -1,6 +1,6 @@
|
|||
run:
|
||||
g++ -o calc main.cpp
|
||||
.\calc.exe
|
||||
|
||||
build:
|
||||
g++ -o calc main.cpp
|
||||
run: build
|
||||
.\calc.exe
|
||||
clean:
|
||||
rm calc.exe
|
Loading…
Reference in New Issue