I have a very simple program like this:
#include <iostream>
int main() { std::cout << "test";};
However, when I use a makefile like below, I got the error "mingw32-make.exe: *** No rule to make target `Debug'. Stop" Will anyone kind enough to point me to the right direction. Thanks for any tips.
.PHONY: all
all: hello
# This rule tells make how to build hello from hello.cpp
hello: hello.cpp
g++ -o hello hello.cpp
# This rule tells make to copy hello to the binaries subdirectory,
# creating it if necessary
.PHONY: install
install:
mkdir -p binaries
cp -p hello binaries
# This rule tells make to delete hello and hello.o
.PHONY: clean
clean:
rm -f hello