I created a make file with a name Makefileon my ec2 Linux server.
all: a b
a: daemon.cpp dictionary_exclude.cpp
g++ -o a daemon.cpp dictionary_exclude.cpp -lpthread -std=c++0x -L.
b: user_main.cpp client.cpp
g++ -o b user_main.cpp client.cpp
I could run each of them independently of each other.
But when I do
make
make -f Makefile
He says make: -bash: make: command not found
Any idea? I see that manually for make is available through man make
source
share