What does no rule to make target mean in GCC?

What does no rule to make target mean in GCC?

In fact, it means that the rule is wrong, but due to wildcard (pattern) rules make cannot determine what exactly caused the issue. Lets alter makefile a little, which is to say replace patterns with explicit rules: make: *** No rule to make target `wrong_path_to_another_file’, needed by `index.html’. Stop.

Why is there no rule to make target?

make: *** No rule to make target `index.html’, needed by `all’. Stop. To be honest the message is confusing. It just says, that there is no rule. In fact, it means that the rule is wrong, but due to wildcard (pattern) rules make cannot determine what exactly caused the issue.

How to get the Makefile error in GCC?

OBJS-$ (CONFIG_OBJ1) += file1.o file2.o \\ file3.o file4.o OBJS-$ (CONFIG_OBJ2) += file5.o One of frequent mistakes might be typo in another file name. You example is quite straightforward but what may sometimes confuse are messages of make itself.

Is there no rule to make target jmebp?

So I downloaded the driver : jmebp-1.0.8.5 I installed gcc, kernel-devel and since it wasn’t working I finally installed the group Development Tools (in case I had forgot something). *** No rule to make target `internet/jmebp-1.0.8.5′.

How to write a non pattern Makefile in GCC?

Instead, in your non-pattern rule, the % is treated as an ordinary character. There are many ways to write makefiles, but a good, simple model to start from for exploring pattern rules would be a combination of your first and second examples: Substitute % with *.

What is the error no rule to make target?

Above is the Makefile of my web server. Though server.c file is in the directory this gives the fallowing error make: *** No rule to make target `Server’, needed by `all’. Stop. What is the mistake I’ve made and how to solve it. That will (probably) solve the problem and make the error go away– if that’s all you want then you can stop reading.