make: *** No targets specified and no makefile found. Stop.

General support questions
Post Reply
Oxzhor
Posts: 4
Joined: 2013/10/10 12:04:13

make: *** No targets specified and no makefile found. Stop.

Post by Oxzhor » 2020/06/29 12:43:01

Hi,

I have the follow problem at my system:

Code: Select all

[root@s1 custombuild]# make
make: *** No targets specified and no makefile found.  Stop.

Code: Select all

[root@s1 custombuild]# whereis make
make: /usr/bin/make /usr/share/man/man1/make.1.gz

Code: Select all

[root@s1 custombuild]# make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu
If i try to compile it always fail because it say make: *** No targets specified and no makefile found. Stop. How i can solved this issue?
Thanks.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: make: *** No targets specified and no makefile found. Stop.

Post by TrevorH » 2020/06/29 13:02:57

Building from source is discouraged. What are you trying to build and can we point you to a packaged version of it?

Your message means you are in the wrong directory and it doesn't contain a file called 'Makefile'.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Oxzhor
Posts: 4
Joined: 2013/10/10 12:04:13

Re: make: *** No targets specified and no makefile found. Stop.

Post by Oxzhor » 2020/06/29 17:16:56

Hehe sure stupid me! coffee can helps :lol:

Can be close.

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: make: *** No targets specified and no makefile found. Stop.

Post by stevemowbray » 2020/07/01 11:55:27

If you must build from source don't do it as root.

Post Reply