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
Forum Moderator
Posts: 29115
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'.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. 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: 508
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

Return to “CentOS 6 - General Support”