I have created make file named Makefile in my linux ec2 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 this independently successfull.
But when I execute
make
make -f Makefile
It says make : -bash: make: command not found
Any idea? I can see manually for make is available through man make
man makewill give you some documentation about themakecommand. you can install the documentation without installingmakeitself, soman makeis not a good test to check whether a program is installed.