Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make *** no targets specified and no makefile found. stop

Tags:

makefile

I have a problem installing package dionaea.

After I type this:

./configure --with-lcfg-include=/opt/dionaea/include/ \ --with-lcfg-lib=/opt/dionaea/lib/ \ --with-python=/opt/dionaea/bin/python3.1 \ --with-cython-dir=/usr/bin \ --with-udns-include=/opt/dionaea/include/ \ --with-udns-lib=/opt/dionaea/lib/ \ --with-emu-include=/opt/dionaea/include/ \ --with-emu-lib=/opt/dionaea/lib/ \ --with-gc-include=/usr/include/gc \ --with-ev-include=/opt/dionaea/include \ --with-ev-lib=/opt/dionaea/lib \ --with-nl-include=/opt/dionaea/include \ --with-nl-lib=/opt/dionaea/lib/ \ --with-curl-config=/opt/dionaea/bin/ \ --with-pcap-include=/opt/dionaea/include \ --with-pcap-lib=/opt/dionaea/lib/ \ --with-glib=/opt/dionaea 

and the next step is:

#make 

An error message appears: make: *** No targets specified and no makefile found. Stop.

My directory is /usr/local/src

like image 467
Nani Avatar asked Jan 19 '13 09:01

Nani


People also ask

Why is makefile not found?

Method 1: Finding a Makefile in the Current DirectoryYou might not be in the right part of the directory tree. If you notice that you see directories that belong in your root / directory or your home ~ directory, then you'll want to run the cd command to position yourself in the right place to run the make command.

What is makefile target?

A simple makefile consists of “rules” with the following shape: target … : prerequisites … recipe … … A target is usually the name of a file that is generated by a program; examples of targets are executable or object files. A target can also be the name of an action to carry out, such as ' clean ' (see Phony Targets).

How do I run a makefile in Linux?

If your make file is actually one of the standard names (like makefile or Makefile ), you don't even need to specify it. It'll be picked up by default (if you have more than one of these standard names in your build directory, you better look up the make man page to see which takes precedence).


2 Answers

make takes a makefile as input. Makefile usually is named makefile or Makefile. The configure command should generate a makefile, so that make could be in turn executed. Check if a makefile has been generated under your working directory.

like image 153
TieDad Avatar answered Sep 21 '22 01:09

TieDad


running make clean and then ./configure should solve your problem.

like image 34
Meir Avatar answered Sep 18 '22 01:09

Meir