make
Hi, I was wondering how to create a Makefile that will run in terminal with just typing test (without having to type ./test)?
1 2
|
all:
g++ test.cpp -o test
|
*This will run with ./test in terminal
That has nothing to do with the makefile. Place the executable in /usr/local/bin if you want to be able to do that.
Okay. How would you edit the makefile to handle "file.txt"
for example: if the user has to enter a file to be loaded upon executing?
What? Look, a makefile solely exists to build the program. It has NOTHING to do with running it.
Topic archived. No new replies allowed.